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 4b3bde1 commit 81e6c96Copy full SHA for 81e6c96
targets/TARGET_Silicon_Labs/TARGET_EFM32/rtcc.c
@@ -22,7 +22,7 @@
22
******************************************************************************/
23
24
#include "device.h"
25
-#if DEVICE_RTC || DEVICE_LPTIMER
+#if DEVICE_RTC || DEVICE_LOWPOWERTIMER
26
27
/* Use RTCC on devices that have it */
28
#if defined(RTCC_PRESENT)
@@ -111,7 +111,9 @@ void lp_ticker_init()
111
{
112
if (!lptick_inited) {
113
rtc_init();
114
+ core_util_critical_section_enter();
115
lptick_offset = RTCC_CounterGet();
116
+ core_util_critical_section_exit();
117
RTCC_CCChConf_TypeDef lp_chan_init = RTCC_CH_INIT_COMPARE_DEFAULT;
118
lp_chan_init.compBase = rtccCompBasePreCnt;
119
lp_chan_init.compMask = 0;
0 commit comments