Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
c90b9b50
Commit
c90b9b50
authored
Jul 24, 2012
by
Dean Camera
Browse files
Add missing UC3 architecture F_USB configuration checks.
parent
bfee7f8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
LUFA/Drivers/USB/Core/UC3/USBController_UC3.h
View file @
c90b9b50
...
...
@@ -84,6 +84,16 @@
#error F_USB is not defined. You must define F_USB to the frequency of the clock input to the USB module.
#endif
#if (defined(USB_SERIES_UC3A3_AVR) || defined(USB_SERIES_UC3A4_AVR))
#if ((F_USB < 12000000) || (F_USB % 12000000))
#error Invalid F_USB specified. F_USB must be a multiple of 12MHz for UC3A3 and UC3A4 devices.
#endif
#else
#if ((F_USB < 48000000) || (F_USB % 48000000))
#error Invalid F_USB specified. F_USB must be a multiple of 48MHz for UC3A and UC3B devices.
#endif
#endif
/* Public Interface - May be used in end-application: */
/* Macros: */
/** \name USB Controller Option Masks */
...
...
LUFA/Drivers/USB/Core/USBMode.h
View file @
c90b9b50
...
...
@@ -102,6 +102,11 @@
*/
#define USB_SERIES_UC3A3_AVR
/** Indicates that the target AVR microcontroller belongs to the AVR32 UC3A4 Series USB controller
* (i.e. AT32UC3A4*) when defined.
*/
#define USB_SERIES_UC3A4_AVR
/** Indicates that the target AVR microcontroller belongs to the AVR32 UC3B0 Series USB controller
* (i.e. AT32UC3B0*) when defined.
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment