aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/GenericHID/GenericHID.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-04-01 07:43:50 +0000
committerDean Camera <[email protected]>2009-04-01 07:43:50 +0000
commitece9e3d5991dd481fc36baf799a1a85d14b88251 (patch)
treea659f9bd537f05ddf841106f2ed94e1f4e0f5bbe /Demos/Device/GenericHID/GenericHID.h
parent6198289b388e4122afe4913f899b37a8e7cd8af4 (diff)
downloadqmk_firmware-ece9e3d5991dd481fc36baf799a1a85d14b88251.tar.gz
qmk_firmware-ece9e3d5991dd481fc36baf799a1a85d14b88251.zip
Changed GenericHID device demo to use the LUFA scheduler, added INTERRUPT_DATA_ENDPOINT and INTERRUPT_CONTROL_ENDPOINT compile time options.
Diffstat (limited to 'Demos/Device/GenericHID/GenericHID.h')
-rw-r--r--Demos/Device/GenericHID/GenericHID.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Demos/Device/GenericHID/GenericHID.h b/Demos/Device/GenericHID/GenericHID.h
index 4bdf2361f6..d13e6debfe 100644
--- a/Demos/Device/GenericHID/GenericHID.h
+++ b/Demos/Device/GenericHID/GenericHID.h
@@ -47,6 +47,7 @@
#include "Descriptors.h"
#include <LUFA/Version.h> // Library Version Information
+ #include <LUFA/Scheduler/Scheduler.h> // Simple scheduler for task management
#include <LUFA/Common/ButtLoadTag.h> // PROGMEM tags readable by the ButtLoad project
#include <LUFA/Drivers/USB/USB.h> // USB Functionality
#include <LUFA/Drivers/Board/LEDs.h> // LEDs driver
@@ -79,6 +80,9 @@
/** Indicates that this module will catch the USB_ConfigurationChanged event when thrown by the library. */
HANDLES_EVENT(USB_ConfigurationChanged);
+
+ /* Task Definitions: */
+ TASK(USB_HID_Report);
/* Function Prototypes: */
void UpdateStatus(uint8_t CurrentStatus);