X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/dc83f73ca34610aaf48962abeb06fb21d9bde23b..59becad82f18c158063ef450d65fefa332857e86:/Demos/Device/GenericHID/GenericHID.h?ds=sidebyside diff --git a/Demos/Device/GenericHID/GenericHID.h b/Demos/Device/GenericHID/GenericHID.h index 4bdf2361f..30354b756 100644 --- a/Demos/Device/GenericHID/GenericHID.h +++ b/Demos/Device/GenericHID/GenericHID.h @@ -47,7 +47,7 @@ #include "Descriptors.h" #include // Library Version Information - #include // PROGMEM tags readable by the ButtLoad project + #include // Simple scheduler for task management #include // USB Functionality #include // LEDs driver @@ -67,20 +67,15 @@ Status_USBReady = 2, /**< USB interface is connected and ready */ }; - /* Event Handlers: */ - /** Indicates that this module will catch the USB_Reset event when thrown by the library. */ - HANDLES_EVENT(USB_Reset); - - /** Indicates that this module will catch the USB_Connect event when thrown by the library. */ - HANDLES_EVENT(USB_Connect); - - /** Indicates that this module will catch the USB_Disconnect event when thrown by the library. */ - HANDLES_EVENT(USB_Disconnect); - - /** 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 EVENT_USB_Connect(void); + void EVENT_USB_Disconnect(void); + void EVENT_USB_ConfigurationChanged(void); + void EVENT_USB_UnhandledControlPacket(void); + void UpdateStatus(uint8_t CurrentStatus); void ProcessGenericHIDReport(uint8_t* DataArray); void CreateGenericHIDReport(uint8_t* DataArray);