Skip to content

Commit 26fd463

Browse files
committed
Support RTC from HSE only for STM32F2/3/4
1 parent 7db9f17 commit 26fd463

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

targets/TARGET_STM/rtc_api_hal.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
extern "C" {
3939
#endif
4040

41+
#if RTC_FROM_HSE && !(TARGET_STM32F2 || TARGET_STM32F3 || TARGET_STM32F4)
42+
#error "RTC from HSE not supported for this target"
43+
#endif
44+
4145
#if RTC_FROM_HSE
4246
#define RTC_CLOCK 1000000U
4347
#elif MBED_CONF_TARGET_LSE_AVAILABLE

0 commit comments

Comments
 (0)