Support RTC from HSE only for STM32F2/3/4

pull/14243/head
Bora Özgen 2021-02-15 09:56:06 +01:00
parent 4d1161b689
commit 25a0aee77e
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@
extern "C" {
#endif
#if RTC_FROM_HSE && !(TARGET_STM32F2 || TARGET_STM32F3 || TARGET_STM32F4)
#error "RTC from HSE not supported for this target"
#endif
#if RTC_FROM_HSE
#define RTC_CLOCK 1000000U
#elif MBED_CONF_TARGET_LSE_AVAILABLE