*/\r
EVENT_HANDLER(USB_Disconnect)\r
{\r
+ /* Stop running keyboard reporting and USB management tasks */\r
+ #if !defined(INTERRUPT_DATA_ENDPOINT)\r
+ Scheduler_SetTaskMode(USB_Keyboard_Report, TASK_STOP);\r
+ #endif\r
+\r
+ #if !defined(INTERRUPT_CONTROL_ENDPOINT)\r
+ Scheduler_SetTaskMode(USB_USBTask, TASK_STOP);\r
+ #endif\r
+ \r
/* Indicate USB not ready */\r
UpdateStatus(Status_USBNotReady);\r
}\r
\r
/* Indicate USB connected and ready */\r
UpdateStatus(Status_USBReady);\r
+\r
+ #if !defined(INTERRUPT_DATA_ENDPOINT)\r
+ /* Start running keyboard reporting task */\r
+ Scheduler_SetTaskMode(USB_Keyboard_Report, TASK_RUN);\r
+ #endif\r
}\r
\r
/** Event handler for the USB_UnhandledControlPacket event. This is used to catch standard and class specific\r