File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ extern "C" {
4747#error "RTC clock configuration is invalid!"
4848#endif
4949
50- #if (MBED_CONF_TARGET_RTC_CLOCK_SOURCE == USE_RTC_CLK_HSE ) && !(TARGET_STM32F2 || TARGET_STM32F3 || TARGET_STM32F4 )
50+ #if (MBED_CONF_TARGET_RTC_CLOCK_SOURCE == USE_RTC_CLK_HSE ) && !(TARGET_STM32F2 || TARGET_STM32F4 || TARGET_STM32F7 )
5151#error "RTC from HSE not supported for this target"
5252#endif
5353
@@ -64,13 +64,14 @@ extern "C" {
6464#endif
6565
6666#if DEVICE_LPTICKER && !MBED_CONF_TARGET_LPTICKER_LPTIM
67+
68+ #if (MBED_CONF_TARGET_RTC_CLOCK_SOURCE == USE_RTC_CLK_HSE )
69+ #error "LPTICKER is not available with HSE as RTC clock source and should be removed from the target configuration."
70+ #endif
71+
6772/* PREDIV_A : 7-bit asynchronous prescaler */
6873/* PREDIV_A is set to set LPTICKER frequency to RTC_CLOCK/4 */
69- #if (MBED_CONF_TARGET_RTC_CLOCK_SOURCE == USE_RTC_CLK_HSE )
70- #define PREDIV_A_VALUE 124
71- #else
7274#define PREDIV_A_VALUE 3
73- #endif
7475
7576/** Read RTC counter with sub second precision
7677 *
You can’t perform that action at this time.
0 commit comments