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" {
47
47
#error "RTC clock configuration is invalid!"
48
48
#endif
49
49
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 )
51
51
#error "RTC from HSE not supported for this target"
52
52
#endif
53
53
@@ -64,13 +64,14 @@ extern "C" {
64
64
#endif
65
65
66
66
#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
+
67
72
/* PREDIV_A : 7-bit asynchronous prescaler */
68
73
/* 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
72
74
#define PREDIV_A_VALUE 3
73
- #endif
74
75
75
76
/** Read RTC counter with sub second precision
76
77
*
You can’t perform that action at this time.
0 commit comments