diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-04 06:26:35 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-04 06:26:35 +0000 |
commit | 7665bf323e76ed1ebcfd137e2ab0bd356b43a5e8 (patch) | |
tree | 2c188510edd76b4ef83f64639810f6dfbdd86b6b /Demos/OTG/TestApp/TestEvents.c | |
parent | dc42c5eb6b663b0b117b5660ba5818186744efd5 (diff) | |
download | lufa-7665bf323e76ed1ebcfd137e2ab0bd356b43a5e8.tar.gz lufa-7665bf323e76ed1ebcfd137e2ab0bd356b43a5e8.tar.bz2 lufa-7665bf323e76ed1ebcfd137e2ab0bd356b43a5e8.zip |
Fixed EVENT_USB_CDC_ControLineStateChanged() event not taking the CDC interface structure as a parameter.
Converted TestApp demo over to the new demo structure.
More class driver documentation improvements.
Diffstat (limited to 'Demos/OTG/TestApp/TestEvents.c')
-rw-r--r-- | Demos/OTG/TestApp/TestEvents.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Demos/OTG/TestApp/TestEvents.c b/Demos/OTG/TestApp/TestEvents.c index ea7fa4b55..9b091472f 100644 --- a/Demos/OTG/TestApp/TestEvents.c +++ b/Demos/OTG/TestApp/TestEvents.c @@ -79,9 +79,6 @@ void EVENT_USB_VBUSDisconnect(void) void EVENT_USB_Connect(void)
{
puts_P(PSTR(EVENT_PREFIX "USB +\r\n"));
- LEDs_SetAllLEDs(LEDS_LED2 | LEDS_LED3 | LEDS_LED4);
-
- Scheduler_SetTaskMode(USB_USBTask, TASK_RUN);
}
/**
@@ -90,24 +87,19 @@ void EVENT_USB_Connect(void) */
void EVENT_USB_Disconnect(void)
{
- Scheduler_SetTaskMode(USB_USBTask, TASK_STOP);
-
puts_P(PSTR(EVENT_PREFIX "USB -\r\n"));
- LEDs_SetAllLEDs(LEDS_LED2 | LEDS_LED3 | LEDS_LED3);
}
/** Event handler for the USB_Suspend event. When fired, the event is logged to the USART. */
void EVENT_USB_Suspend(void)
{
puts_P(PSTR(EVENT_PREFIX ESC_BG_YELLOW "USB Sleep\r\n"));
- LEDs_SetAllLEDs(LEDS_ALL_LEDS);
}
/** Event handler for the USB_WakeUp event. When fired, the event is logged to the USART. */
void EVENT_USB_WakeUp(void)
{
puts_P(PSTR(EVENT_PREFIX ESC_BG_GREEN "USB Wakeup\r\n"));
- LEDs_SetAllLEDs(LEDS_LED2 | LEDS_LED4);
}
/** Event handler for the USB_Reset event. When fired, the event is logged to the USART. */
@@ -129,8 +121,6 @@ void EVENT_USB_UIDChange(void) ModeStrPtr = PSTR("DEVICE");
else
ModeStrPtr = PSTR("N/A");
-
- LEDs_SetAllLEDs(LEDS_LED2 | LEDS_LED3);
printf_P(PSTR(" -- New Mode %S\r\n"), ModeStrPtr);
}
@@ -192,16 +182,12 @@ void EVENT_USB_UnhandledControlPacket(void) void EVENT_USB_ConfigurationChanged(void)
{
puts_P(PSTR(EVENT_PREFIX "Configuration Number Changed\r\n"));
-
- LEDs_SetAllLEDs(LEDS_LED2 | LEDS_LED4);
}
/** Event handler for the USB_DeviceAttached event. When fired, the event is logged to the USART. */
void EVENT_USB_DeviceAttached(void)
{
puts_P(PSTR(EVENT_PREFIX ESC_BG_GREEN "Device +\r\n"));
-
- Scheduler_SetTaskMode(USB_USBTask, TASK_RUN);
}
/** Event handler for the USB_DeviceUnattached event. When fired, the event is logged to the USART. */
|