#ifndef __USBMODE_H__\r
#define __USBMODE_H__\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
#if defined(__DOXYGEN__)\r
/** Indicates that the target AVR microcontroller belongs to the Series 2 USB controller\r
* (i.e. AT90USBXXX7) when defined.\r
*/\r
#define USB_SERIES_7_AVR\r
+ \r
+ /** Indicates that the target AVR microcontroller belongs to the Series UC3B USB controller\r
+ * (i.e. AT32UC3BXXXX) when defined.\r
+ */\r
+ #define USB_SERIES_UC3B_AVR\r
\r
/** Indicates that the target AVR microcontroller and compilation settings allow for the\r
* target to be configured in USB Device mode when defined.\r
#define USB_SERIES_6_AVR\r
#elif (defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1287__))\r
#define USB_SERIES_7_AVR\r
+ #elif (defined(__AVR32_UC3B0256__))\r
+ #define USB_SERIES_UC3B_AVR\r
#endif \r
\r
- #if !defined(USB_SERIES_7_AVR) \r
+ #if !defined(USB_SERIES_7_AVR) && !defined(USB_SERIES_UC3B_AVR)\r
#if defined(USB_HOST_ONLY)\r
#error USB_HOST_ONLY is not available for the currently selected USB AVR model.\r
#endif\r