mirror of https://github.com/ARMmbed/mbed-os.git
Support RTC from HSE only for STM32F2/3/4
parent
4d1161b689
commit
25a0aee77e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue