diff options
Diffstat (limited to 'Demos')
3 files changed, 12 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.txt b/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.txt index 03a97cee9..3959f89c4 100644 --- a/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.txt +++ b/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.txt @@ -50,7 +50,7 @@ * * Dual Communications Device Class demonstration application. * This gives a simple reference application for implementing - * a compound device with dual CDC functions acting as a pair + * a composite device with dual CDC functions acting as a pair * of virtual serial ports. This demo uses Interface Association * Descriptors to link together the pair of related CDC * descriptors for each virtual serial port, which may not be diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.c b/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.c index e2a2128e9..8d1cae9ad 100644 --- a/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.c +++ b/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.c @@ -62,12 +62,14 @@ USB_ClassInfo_HID_Device_t Mouse_HID_Device_Interface = /** Event handler for the library USB WakeUp event. */ void EVENT_USB_Device_Connect(void) { + puts_P(PSTR("Device Connected.\r\n")); LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING); } /** Event handler for the library USB Suspend event. */ void EVENT_USB_Device_Disconnect(void) { + puts_P(PSTR("Device Disconnected.\r\n")); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); } diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c index cd6bf59ee..1b905b114 100644 --- a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c +++ b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c @@ -82,3 +82,12 @@ void SetupHardware(void) Buttons_Init(); USB_Init(USB_MODE_UID); } + +/** Event handler for the library USB mode change event. */ +void EVENT_USB_UIDChange(void) +{ + printf_P(PSTR(ESC_FG_YELLOW "UID Change to %S mode\r\n" ESC_FG_WHITE), + (USB_CurrentMode == USB_MODE_DEVICE) ? PSTR("Device") : PSTR("Host")); + + LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); +} |