F_CLOCK changed to F_USB to be more descriptive, and applicable on future architectur...
[pub/USBasp.git] / LUFA / Drivers / USB / Core / AVR8 / USBController_AVR8.h
index 77e92cb..a6e0067 100644 (file)
                        #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead.
                #endif
 
-               #if !defined(F_CLOCK)
-                       #error F_CLOCK is not defined. You must define F_CLOCK to the frequency of the unprescaled USB controller clock in your project makefile.
+               #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_CLOCK == 8000000)
+               #if (F_USB == 8000000)
                        #if (defined(__AVR_AT90USB82__) || defined(__AVR_AT90USB162__) || \
                             defined(__AVR_ATmega8U2__) || defined(__AVR_ATmega16U2__) || \
                             defined(__AVR_ATmega32U2__))
@@ -96,7 +96,7 @@
                        #elif (defined(__AVR_AT90USB647__)  || defined(__AVR_AT90USB1287__))
                                #define USB_PLL_PSC                ((1 << PLLP1) | (1 << PLLP0))
                        #endif
-               #elif (F_CLOCK == 16000000)
+               #elif (F_USB == 16000000)
                        #if (defined(__AVR_AT90USB82__) || defined(__AVR_AT90USB162__) || \
                             defined(__AVR_ATmega8U2__) || defined(__AVR_ATmega16U2__) || \
                             defined(__AVR_ATmega32U2__))
                #endif
 
                #if !defined(USB_PLL_PSC)
-                       #error No PLL prescale value available for chosen F_CLOCK value and AVR model.
+                       #error No PLL prescale value available for chosen F_USB value and AVR model.
                #endif
 
        /* Public Interface - May be used in end-application: */