Skip to content

Commit 81e6c96

Browse files
stevew817bulislaw
authored andcommitted
Code style fixes requested by @0xc0170
Tests still passing
1 parent 4b3bde1 commit 81e6c96

File tree

1 file changed

+3
-1
lines changed
  • targets/TARGET_Silicon_Labs/TARGET_EFM32

1 file changed

+3
-1
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/rtcc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
******************************************************************************/
2323

2424
#include "device.h"
25-
#if DEVICE_RTC || DEVICE_LPTIMER
25+
#if DEVICE_RTC || DEVICE_LOWPOWERTIMER
2626

2727
/* Use RTCC on devices that have it */
2828
#if defined(RTCC_PRESENT)
@@ -111,7 +111,9 @@ void lp_ticker_init()
111111
{
112112
if (!lptick_inited) {
113113
rtc_init();
114+
core_util_critical_section_enter();
114115
lptick_offset = RTCC_CounterGet();
116+
core_util_critical_section_exit();
115117
RTCC_CCChConf_TypeDef lp_chan_init = RTCC_CH_INIT_COMPARE_DEFAULT;
116118
lp_chan_init.compBase = rtccCompBasePreCnt;
117119
lp_chan_init.compMask = 0;

0 commit comments

Comments
 (0)