diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-02-09 20:30:27 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-02-09 20:30:27 +0000 |
commit | 2180f57d17a5589291eaf77db999f61a883ef3b6 (patch) | |
tree | 7b77dd0aea677621d885febca71948520c5f5da4 /LUFA/Drivers/USB/Class/Device/HIDClassDevice.h | |
parent | 385ffb6de3cc85462be82f14eeb580d6b66bc5e7 (diff) | |
download | lufa-2180f57d17a5589291eaf77db999f61a883ef3b6.tar.gz lufa-2180f57d17a5589291eaf77db999f61a883ef3b6.tar.bz2 lufa-2180f57d17a5589291eaf77db999f61a883ef3b6.zip |
Altered the HID class driver to only try to construct at maximum one packet per USB frame, to reduce CPU usage.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Device/HIDClassDevice.h')
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/HIDClassDevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/HIDClassDevice.h b/LUFA/Drivers/USB/Class/Device/HIDClassDevice.h index ab86da452..95389f371 100644 --- a/LUFA/Drivers/USB/Class/Device/HIDClassDevice.h +++ b/LUFA/Drivers/USB/Class/Device/HIDClassDevice.h @@ -113,6 +113,7 @@ struct { bool UsingReportProtocol; /**< Indicates if the HID interface is set to Boot or Report protocol mode. */ + uint16_t PrevFrameNum; /**< Frame number of the previous HID report packet opportunity. */ uint16_t IdleCount; /**< Report idle period, in milliseconds, set by the host. */ uint16_t IdleMSRemaining; /**< Total number of milliseconds remaining before the idle period elapsed - this * should be decremented by the user application if non-zero each millisecond. */ |