interrupt driven HID device

38 views
Skip to first unread message

Andrew Smallbone

unread,
Feb 29, 2012, 3:14:48 AM2/29/12
to lufa-s...@googlegroups.com
I've been using LUFA successfully (great lib Dean) but just started to
try and make it interrupt driven.

Am I right in thinking that by setting INTERRUPT_CONTROL_ENDPOINT in
the compile chain I don't need to call the HID Task functions
(HID_Device_USBTask() etc.) and my HID callbacks
(CALLBACK_HID_Device_CreateHIDReport()) will get called when needed.

The post below seems to suggest they are but I'm not seeing any
callbacks and I can't find the code in LUFA (120219) that does it.
http://groups.google.com/group/lufa-support/browse_thread/thread/1e71870c45f1a018

Do I need some more event glue to get the HID callbacks?

regards
Andrew

Dean Camera

unread,
Mar 16, 2012, 3:32:45 PM3/16/12
to LUFA Library Support List
Unfortunately not (currently) as that option will only remove the need
for the USB_USBTask() call; you will still need to periodically call
the HID management function until the library is reworked to be fully
interrupt driven.

Cheers!
- Dean

On Feb 29, 9:14 am, Andrew Smallbone <and...@rocketnumbernine.com>
wrote:
> I've been using LUFA successfully (great lib Dean) but just started to
> try and make it interrupt driven.
>
> Am I right in thinking that by setting INTERRUPT_CONTROL_ENDPOINT in
> the compile chain I don't need to call the HID Task functions
> (HID_Device_USBTask() etc.) and my HID callbacks
> (CALLBACK_HID_Device_CreateHIDReport()) will get called when needed.
>
> The post below seems to suggest they are but I'm not seeing any
> callbacks and I can't find the code in LUFA (120219) that does it.http://groups.google.com/group/lufa-support/browse_thread/thread/1e71...
Reply all
Reply to author
Forward
0 new messages