diff options
-rw-r--r-- | os/hal/platforms/STM32/hal_lld_f103.h | 12 |
1 files changed, 6 insertions, 6 deletions
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.
*/
|