Add additional preprocessor sanity checks for the XMEGA platform based on the USB...
[pub/USBasp.git] / LUFA / Drivers / USB / Core / XMEGA / USBController_XMEGA.h
index 1cdb6f0..25402e8 100644 (file)
@@ -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