Rewritten event system to remove all macros, to make user code clearer.
[pub/USBasp.git] / Demos / Host / MouseHost / MouseHost.h
index 81b0412..7111218 100644 (file)
                        Status_HardwareError    = 4, /**< Hardware error while enumerating the attached USB device */\r
                };\r
                \r
-       /* Event Handlers: */\r
-               HANDLES_EVENT(USB_DeviceAttached);\r
-               HANDLES_EVENT(USB_DeviceUnattached);\r
-               HANDLES_EVENT(USB_DeviceEnumerationComplete);\r
-               HANDLES_EVENT(USB_HostError);\r
-               HANDLES_EVENT(USB_DeviceEnumerationFailed);\r
-\r
        /* Function Prototypes: */\r
+               void EVENT_USB_HostError(const uint8_t ErrorCode);\r
+               void EVENT_USB_DeviceAttached(void);\r
+               void EVENT_USB_DeviceUnattached(void);\r
+               void EVENT_USB_DeviceEnumerationFailed(const uint8_t ErrorCode, const uint8_t SubErrorCode);\r
+               void EVENT_USB_DeviceEnumerationComplete(void);\r
+\r
                void UpdateStatus(uint8_t CurrentStatus);\r
                void ReadNextReport(void);\r
                \r