Rewritten event system to remove all macros, to make user code clearer.
[pub/lufa.git] / Demos / Host / MassStorageHost / MassStorageHost.h
index 2160659..1646ad7 100644 (file)
 \r
        /* Task Definitions: */\r
                TASK(USB_MassStore_Host);\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 ShowDiskReadError(char* CommandString, bool FailedAtSCSILayer, uint8_t ErrorCode);\r
                void UpdateStatus(uint8_t CurrentStatus);               \r
 \r