X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/0e6d5cf5b4fea133cbd3c16b958617deb42332cf..3702ba1fb31f265360a0e4cf1736465e44389103:/LUFA/Drivers/USB/LowLevel/LowLevel.c?ds=inline diff --git a/LUFA/Drivers/USB/LowLevel/LowLevel.c b/LUFA/Drivers/USB/LowLevel/LowLevel.c index f4f277ccb..0d220cedc 100644 --- a/LUFA/Drivers/USB/LowLevel/LowLevel.c +++ b/LUFA/Drivers/USB/LowLevel/LowLevel.c @@ -39,6 +39,10 @@ volatile uint8_t USB_CurrentMode = USB_MODE_NONE; volatile uint8_t USB_Options; #endif +#if defined(__AVR32__) && !defined(CONTROL_ONLY_DEVICE) +uint8_t USB_SelectedEPNumber; +#endif + void USB_Init( #if defined(USB_CAN_BE_BOTH) const uint8_t Mode @@ -55,6 +59,10 @@ void USB_Init( #endif ) { + #if defined(__AVR32__) + USB_SelectedEPNumber = 0; + #endif + #if defined(USB_CAN_BE_BOTH) USB_CurrentMode = Mode; #endif