Add new HID_Device_MillisecondElapsed() function to the HID device Class driver, to move the burden of managing the Idle period of each instance to the library and not the user application.
This commit is contained in:
1 parent
7227e133a9
commit
7df6b9563c
9 files changed
+21
-26
No files matched your search
@@ -118,8 +118,7 @@ void EVENT_USB_UnhandledControlPacket(void)
|
||||
/** ISR to keep track of each millisecond interrupt, for determining the HID class idle period remaining when set. */
|
||||
ISR(TIMER0_COMPA_vect, ISR_BLOCK)
|
||||
{
|
||||
if (Generic_HID_Interface.State.IdleMSRemaining)
|
||||
Generic_HID_Interface.State.IdleMSRemaining--;
|
||||
HID_Device_MillisecondElapsed(&Generic_HID_Interface);
|
||||
}
|
||||
|
||||
/** HID class driver callback function for the creation of HID reports to the host.
|
||||
|
||||
Reference in new issue
Block a user