We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8adb393 commit 63c5c7dCopy full SHA for 63c5c7d
targets/TARGET_STM/lp_ticker.c
@@ -45,6 +45,14 @@ void lp_ticker_init(void)
45
46
rtc_init();
47
rtc_set_irq_handler((uint32_t) lp_ticker_irq_handler);
48
+
49
+#ifdef MBED_HEAP_STATS_ENABLED
50
+ /* rtc_read is using mktime function which is calling at the first time __wrap__free_r */
51
+ /* __wrap__free_r needs to initialize Singleton not in ISR */
52
+ /* rtc_read is called at each ticker setup which call core_util_critical_section_enter */
53
+ /* so rtc_read is called once once before other calls */
54
+ rtc_read();
55
+#endif /* MBED_HEAP_STATS_ENABLED */
56
}
57
58
uint32_t lp_ticker_read(void)
0 commit comments