Add additional preprocessor sanity checks for the XMEGA platform based on the USB...
[pub/lufa.git] / LUFA / Drivers / USB / Core / XMEGA / Device_XMEGA.h
index 268fe95..4d75cc2 100644 (file)
                         */
                        #define USB_DEVICE_OPT_LOWSPEED        (1 << 0)
 
-                       /** Mask for the Options parameter of the \ref USB_Init() function. This indicates that the
-                        *  USB interface should be initialized in full speed (12Mb/s) mode.
-                        */
-                       #define USB_DEVICE_OPT_FULLSPEED       (0 << 0)
+                       #if (F_USB > 6000000)
+                               /** Mask for the Options parameter of the \ref USB_Init() function. This indicates that the
+                                *  USB interface should be initialized in full speed (12Mb/s) mode.
+                                */
+                               #define USB_DEVICE_OPT_FULLSPEED   (0 << 0)
+                       #endif
                        //@}
 
                        #if (!defined(NO_INTERNAL_SERIAL) || defined(__DOXYGEN__))