From 1604490dc9c601b99ceffa5cd010d709b43ad879 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 25 Dec 2010 11:41:36 +0000 Subject: Wrong ifdef. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2532 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/hal_lld_f103.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'os/hal') diff --git a/os/hal/platforms/STM32/hal_lld_f103.h b/os/hal/platforms/STM32/hal_lld_f103.h index 5adec93dc..6ea53571a 100644 --- a/os/hal/platforms/STM32/hal_lld_f103.h +++ b/os/hal/platforms/STM32/hal_lld_f103.h @@ -249,7 +249,7 @@ /** * @brief USB prescaler initialization. */ -#if !defined(STM32_USEUSB) || defined(__DOXYGEN__) +#if !defined(STM32_USBPRE) || defined(__DOXYGEN__) #define STM32_USBPRE STM32_USBPRE_DIV1P5 #endif @@ -416,6 +416,11 @@ #error "invalid STM32_ADCPRE value specified" #endif +/* ADC frequency check.*/ +#if STM32_ADCCLK > 14000000 +#error "STM32_ADCCLK exceeding maximum frequency (14MHz)" +#endif + /** * @brief USB frequency. */ @@ -427,11 +432,6 @@ #error "invalid STM32_USBPRE value specified" #endif -/* ADC frequency check.*/ -#if STM32_ADCCLK > 14000000 -#error "STM32_ADCCLK exceeding maximum frequency (14MHz)" -#endif - /** * @brief Timers 2, 3, 4, 5, 6, 7, 12, 13, 14 clock. */ -- cgit v1.2.3