diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-05 19:46:20 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-05 19:46:20 +0000 |
commit | 0e434c8f8fc1e33230a9b9c54583d59a232553e5 (patch) | |
tree | cd0812d13511928f5d7df6ac78fb51356c753890 /LUFA/Drivers/USB/Core/XMEGA/USBController_XMEGA.h | |
parent | 2d98e5499b42ca4feda390d5bd867aa956bf7f11 (diff) | |
download | lufa-0e434c8f8fc1e33230a9b9c54583d59a232553e5.tar.gz lufa-0e434c8f8fc1e33230a9b9c54583d59a232553e5.tar.bz2 lufa-0e434c8f8fc1e33230a9b9c54583d59a232553e5.zip |
Add additional preprocessor sanity checks for the XMEGA platform based on the USB controller input clock speed.
Diffstat (limited to 'LUFA/Drivers/USB/Core/XMEGA/USBController_XMEGA.h')
-rw-r--r-- | LUFA/Drivers/USB/Core/XMEGA/USBController_XMEGA.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Core/XMEGA/USBController_XMEGA.h b/LUFA/Drivers/USB/Core/XMEGA/USBController_XMEGA.h index 1cdb6f03c..25402e855 100644 --- a/LUFA/Drivers/USB/Core/XMEGA/USBController_XMEGA.h +++ b/LUFA/Drivers/USB/Core/XMEGA/USBController_XMEGA.h @@ -95,7 +95,7 @@ #error F_USB is not defined. You must define F_USB to the frequency of the unprescaled USB controller clock in your project makefile. #endif - #if (F_USB % 6000000) + #if ((F_USB % 6000000) || (F_USB < 6000000)) #error Invalid F_USB specified. F_USB must be a multiple of 6MHz for USB Low Speed operation, and a multiple of 48MHz for Full Speed operation. #endif |