Minor corrections for the XMEGA USB controller. Add compile time warning if the USB...
[pub/lufa.git] / LUFA / Drivers / USB / Core / XMEGA / USBController_XMEGA.h
index 0d39258..2c31697 100644 (file)
                #if !defined(F_USB)
                        #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)
+                       #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
 
        /* Public Interface - May be used in end-application: */
                /* Macros: */