I would like to program my mbed as a USBHID device that responds only when a request comes in. I'm using the code found on this page:
but I do not want the mbed constantly polling for traffic. Is there a way to configure the LPC to generate USB receive interrupts? Is there an example or documentation?
Greg, look at the source for the USBHID and USBDevice classes.
There are various virtual methods that can be overridden - look for the ones that say "Warning - Called in ISR context". You can override these and see if they do what you want.
Remember to also call the base class implementation of the method from your override (as appropriate) or the class may stop working!
Please log in to post a reply.
mbed, the fastest way to prototype with ARM based microcontrollers.
^ back to top