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.
This commit is contained in:
parent
ea74397095
commit
958a1b4e2b
23 changed files with 98 additions and 470 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue