diff --git a/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c b/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c index 4f02e5128fdc847885536bc4023aa8bbb107add6..2b27b120ed80ef31963508b118aebbe9fbeca12c 100644 --- a/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c +++ b/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c @@ -103,7 +103,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) } /** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */ -void EVENT_USB_HostError(const uint8_t ErrorCode) +void EVENT_USB_Host_HostError(const uint8_t ErrorCode) { USB_ShutDown(); diff --git a/LUFA/Drivers/USB/HighLevel/StdDescriptors.h b/LUFA/Drivers/USB/HighLevel/StdDescriptors.h index 274b84fc4d2fe9360c93a94b47ab1a775a7924e8..0e0d1e9f496ad3d5029691b23c61318279d7dc7e 100644 --- a/LUFA/Drivers/USB/HighLevel/StdDescriptors.h +++ b/LUFA/Drivers/USB/HighLevel/StdDescriptors.h @@ -85,13 +85,13 @@ * On unsupported devices, this will evaluate to NO_DESCRIPTOR and so will force the host to create a pseduo-serial * number for the device. */ - #define USE_INTERNAL_SERIAL 0xDC + #define USE_INTERNAL_SERIAL 0xDC #else - #define USE_INTERNAL_SERIAL NO_DESCRIPTOR + #define USE_INTERNAL_SERIAL NO_DESCRIPTOR #endif /** Macro to calculate the power value for the device descriptor, from a given number of milliamps. */ - #define USB_CONFIG_POWER_MA(mA) (mA >> 1) + #define USB_CONFIG_POWER_MA(mA) (mA >> 1) /** Macro to calculate the Unicode length of a string with a given number of Unicode characters. * Should be used in string descriptor's headers for giving the string descriptor's byte length. diff --git a/LUFA/Drivers/USB/HighLevel/USBTask.h b/LUFA/Drivers/USB/HighLevel/USBTask.h index 08accc1ef38d854dd985871ac42d2f9dd0c5ed32..9c0abf013163ccdd0de6c56a840dee3094436b46 100644 --- a/LUFA/Drivers/USB/HighLevel/USBTask.h +++ b/LUFA/Drivers/USB/HighLevel/USBTask.h @@ -35,17 +35,20 @@ #include <avr/io.h> #include <avr/interrupt.h> #include <stdbool.h> - #include <stddef.h> #include "../LowLevel/LowLevel.h" - #include "StdRequestType.h" - #include "USBMode.h" #include "Events.h" + #include "StdRequestType.h" #include "StdDescriptors.h" + #include "USBMode.h" + + #if defined(USB_CAN_BE_DEVICE) + #include "../LowLevel/DevChapter9.h" + #endif #if defined(USB_CAN_BE_HOST) #include "../LowLevel/HostChapter9.h" - #endif + #endif /* Enable C linkage for C++ Compilers: */ #if defined(__cplusplus) diff --git a/Projects/Benito/Benito.c b/Projects/Benito/Benito.c index 100c897fa1aecf9d56c4de03cb1084aa5087925f..afe29b4a9bf8d5c453dd179829cb89e9cf68517a 100644 --- a/Projects/Benito/Benito.c +++ b/Projects/Benito/Benito.c @@ -102,7 +102,7 @@ int main(void) /* Check if the LEDs should be ping-ponging (during enumeration) */ if (PingPongMSRemaining && !(--PingPongMSRemaining)) { - LEDs_ToggleLEDs(LEDMASK_BUSY); + LEDs_ToggleLEDs(LEDMASK_TX | LEDMASK_RX); PingPongMSRemaining = PING_PONG_LED_PULSE_MS; }