X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/d49cc0f7830319e701294e19937fae4de26ae8e2..a7aaa45ec4c3f415bf6073a5cc016635d5ecf77d:/LUFA/Drivers/USB/HighLevel/USBMode.h diff --git a/LUFA/Drivers/USB/HighLevel/USBMode.h b/LUFA/Drivers/USB/HighLevel/USBMode.h index ba2d45394..ee10dea5c 100644 --- a/LUFA/Drivers/USB/HighLevel/USBMode.h +++ b/LUFA/Drivers/USB/HighLevel/USBMode.h @@ -45,7 +45,7 @@ /* Preprocessor Checks: */ #if !defined(__INCLUDE_FROM_USB_DRIVER) - #error Do not include this file directly. Include LUFA/Drivers/USB.h instead. + #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead. #endif /* Public Interface - May be used in end-application: */ @@ -69,6 +69,11 @@ * (i.e. AT90USBXXX7) when defined. */ #define USB_SERIES_7_AVR + + /** Indicates that the target AVR microcontroller belongs to the Series UC3B USB controller + * (i.e. AT32UC3BXXXX) when defined. + */ + #define USB_SERIES_UC3B_AVR /** Indicates that the target AVR microcontroller and compilation settings allow for the * target to be configured in USB Device mode when defined. @@ -95,9 +100,11 @@ #define USB_SERIES_6_AVR #elif (defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1287__)) #define USB_SERIES_7_AVR + #elif (defined(__AVR32_UC3B0256__)) + #define USB_SERIES_UC3B_AVR #endif - #if !defined(USB_SERIES_7_AVR) + #if !defined(USB_SERIES_7_AVR) && !defined(USB_SERIES_UC3B_AVR) #if defined(USB_HOST_ONLY) #error USB_HOST_ONLY is not available for the currently selected USB AVR model. #endif