aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/Keyboard/Keyboard.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-05-12 08:28:02 +0000
committerDean Camera <[email protected]>2009-05-12 08:28:02 +0000
commit958a1b4e2bffdc548b34edd322d30cec5d5feacd (patch)
tree26ae804ec69ffb4f1c0e788eed9d3411b215a55c /Demos/Device/Keyboard/Keyboard.h
parentea743970951cbcd6d5206b3136de8c9eb90298a5 (diff)
downloadqmk_firmware-958a1b4e2bffdc548b34edd322d30cec5d5feacd.tar.gz
qmk_firmware-958a1b4e2bffdc548b34edd322d30cec5d5feacd.zip
Fixed Mouse and Keyboard device demos not acting in accordance with the HID specification for idle periods (thanks to Brian Dickman).
Removed support for endpoint/pipe non-control interrupts; these did not act in the way users expected, and had many subtle issues.
Diffstat (limited to 'Demos/Device/Keyboard/Keyboard.h')
-rw-r--r--Demos/Device/Keyboard/Keyboard.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Demos/Device/Keyboard/Keyboard.h b/Demos/Device/Keyboard/Keyboard.h
index 76b770582b..c73701905c 100644
--- a/Demos/Device/Keyboard/Keyboard.h
+++ b/Demos/Device/Keyboard/Keyboard.h
@@ -54,6 +54,9 @@
#include <LUFA/Drivers/Board/LEDs.h> // LEDs driver
/* Macros: */
+ /** Idle period indicating that reports should be sent only when the inputs have changed */
+ #define HID_IDLE_CHANGESONLY 0
+
/** HID Class specific request to get the next HID report from the device. */
#define REQ_GetReport 0x01
@@ -114,8 +117,8 @@
/* Function Prototypes: */
void CreateKeyboardReport(USB_KeyboardReport_Data_t* ReportData);
void ProcessLEDReport(uint8_t LEDReport);
- static inline void SendNextReport(void);
- static inline void ReceiveNextReport(void);
+ void SendNextReport(void);
+ void ReceiveNextReport(void);
void UpdateStatus(uint8_t CurrentStatus);
#endif