Skip to content

Commit 3a117cf

Browse files
mprse0xc0170
authored andcommitted
Rename DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER.
1 parent be873c5 commit 3a117cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

targets/TARGET_NORDIC/TARGET_NRF5/common_rtc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void COMMON_RTC_IRQ_HANDLER(void)
7676
{
7777
rtc_ovf_event_check();
7878

79-
#if DEVICE_LOWPOWERTIMER
79+
#if DEVICE_LPTICKER
8080
if (nrf_rtc_event_pending(COMMON_RTC_INSTANCE, LP_TICKER_EVENT) ||
8181
lp_ticker_interrupt_fire) {
8282

@@ -111,7 +111,7 @@ void RTC1_IRQHandler(void);
111111
void common_rtc_init(void)
112112
{
113113
if (m_common_rtc_enabled) {
114-
#if DEVICE_LOWPOWERTIMER
114+
#if DEVICE_LPTICKER
115115
nrf_rtc_event_clear(COMMON_RTC_INSTANCE, LP_TICKER_EVENT);
116116
nrf_rtc_int_disable(COMMON_RTC_INSTANCE, LP_TICKER_INT_MASK);
117117
#endif
@@ -136,7 +136,7 @@ void common_rtc_init(void)
136136
#if defined(TARGET_MCU_NRF51822)
137137
nrf_rtc_event_clear(COMMON_RTC_INSTANCE, OS_TICK_EVENT);
138138
#endif
139-
#if DEVICE_LOWPOWERTIMER
139+
#if DEVICE_LPTICKER
140140
nrf_rtc_event_clear(COMMON_RTC_INSTANCE, LP_TICKER_EVENT);
141141
#endif
142142
nrf_rtc_event_clear(COMMON_RTC_INSTANCE, NRF_RTC_EVENT_OVERFLOW);
@@ -150,7 +150,7 @@ void common_rtc_init(void)
150150
#if defined(TARGET_MCU_NRF51822)
151151
| OS_TICK_INT_MASK
152152
#endif
153-
#if DEVICE_LOWPOWERTIMER
153+
#if DEVICE_LPTICKER
154154
| LP_TICKER_INT_MASK
155155
#endif
156156
);
@@ -161,7 +161,7 @@ void common_rtc_init(void)
161161
nrf_rtc_int_enable(COMMON_RTC_INSTANCE, NRF_RTC_INT_OVERFLOW_MASK);
162162

163163
/* Disable LP ticker interrupt for now. */
164-
#if DEVICE_LOWPOWERTIMER
164+
#if DEVICE_LPTICKER
165165
nrf_rtc_int_disable(COMMON_RTC_INSTANCE, LP_TICKER_INT_MASK);
166166
#endif
167167

0 commit comments

Comments
 (0)