/** \file\r
*\r
* This file contains dummy handlers for all the possible USB events passed to the\r
- * application by the library (see Events.h documentation for more details on USB events).\r
+ * application by the library (see \ref Group_Events documentation for more details on USB events).\r
*\r
* Each event is caught and printed to the USART so that they may be monitored.\r
*/\r
* Event handler for the USB_PowerOnFail event. When fired, the event is logged to the USART and the program\r
* execution aborted.\r
*/\r
-EVENT_HANDLER(USB_PowerOnFail)\r
+EVENT_HANDLER(USB_InitFailure)\r
{\r
char* ModeStrPtr;\r
\r
EVENT_HANDLER(USB_UnhandledControlPacket)\r
{\r
puts_P(PSTR(EVENT_PREFIX "Ctrl Request\r\n"));\r
- printf_P(PSTR(" -- Req Data %d\r\n"), bRequest);\r
- printf_P(PSTR(" -- Req Type %d\r\n"), bmRequestType);\r
+ printf_P(PSTR(" -- Req Data %d\r\n"), USB_ControlRequest.bRequest);\r
+ printf_P(PSTR(" -- Req Type %d\r\n"), USB_ControlRequest.bmRequestType);\r
+ printf_P(PSTR(" -- Req Length %d\r\n"), USB_ControlRequest.wLength);\r
}\r
\r
/** Event handler for the USB_ConfigurationChanged event. When fired, the event is logged to the USART. */\r