Content originally posted in LPCWare by Tsuneo on Sun Mar 08 10:21:19 MST 2015
Quote:
This is on a LPC2468
And where does the example come from?
Maybe, you've started on a "bad" HID device example, which repeatedly returns input reports over the HID interrupt IN endpoint at every IN transaction from host. HID spec supposes just when any change would occur, the device should return an input report. I've warned on this issue for these years, but sloppy programmers have still reproduced "bad" HID examples.
In most cases, "bad" HID example implements "bad" behavoir in these code sections,
- Set_Configuration handler: put an initial input report to the interrupt EP.
- The endpoint interrupt handler: put another input report to the interrupt EP.
Delete these codes from the example, and you'll see the behavoir you expect.
If you would specify the starting example, you would get more detailed answer.
Tsuneo