projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More AVR32 achitecture ports.
[pub/lufa.git]
/
LUFA
/
Drivers
/
USB
/
HighLevel
/
USBMode.h
diff --git
a/LUFA/Drivers/USB/HighLevel/USBMode.h
b/LUFA/Drivers/USB/HighLevel/USBMode.h
index
ba2d453
..
ee10dea
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/USBMode.h
+++ b/
LUFA/Drivers/USB/HighLevel/USBMode.h
@@
-45,7
+45,7
@@
\r
/* Preprocessor Checks: */
\r
#if !defined(__INCLUDE_FROM_USB_DRIVER)
\r
\r
/* Preprocessor Checks: */
\r
#if !defined(__INCLUDE_FROM_USB_DRIVER)
\r
- #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.
\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
#endif
\r
\r
/* Public Interface - May be used in end-application: */
\r
@@
-69,6
+69,11
@@
* (i.e. AT90USBXXX7) when defined.
\r
*/
\r
#define USB_SERIES_7_AVR
\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
\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
@@
-95,9
+100,11
@@
#define USB_SERIES_6_AVR
\r
#elif (defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1287__))
\r
#define USB_SERIES_7_AVR
\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
#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
#if defined(USB_HOST_ONLY)
\r
#error USB_HOST_ONLY is not available for the currently selected USB AVR model.
\r
#endif
\r