Skip to content

Commit a305d84

Browse files
committed
Rename LOWPOWERTIMER to LPTICKER
1 parent 500be1f commit a305d84

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

TESTS/mbed_hal/rtc/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static const uint32_t DELAY_10S = 10;
3939
static const uint32_t RTC_TOLERANCE = 1;
4040
static const uint32_t TOLERANCE_ACCURACY_US = (DELAY_10S * US_PER_SEC / ACCURACY_FACTOR);
4141

42-
#if DEVICE_LOWPOWERTIMER
42+
#if DEVICE_LPTICKER
4343
volatile bool expired;
4444

4545
void callback(void)
@@ -102,7 +102,7 @@ void rtc_init_test()
102102
rtc_free();
103103
}
104104

105-
#if DEVICE_LOWPOWERTIMER
105+
#if DEVICE_LPTICKER
106106
/** Test that the RTC keeps counting in the various sleep modes. */
107107

108108
void rtc_sleep_test()
@@ -233,7 +233,7 @@ void rtc_enabled_test()
233233

234234
Case cases[] = {
235235
Case("RTC - init", rtc_init_test),
236-
#if DEVICE_LOWPOWERTIMER
236+
#if DEVICE_LPTICKER
237237
Case("RTC - sleep", rtc_sleep_test),
238238
#endif
239239
Case("RTC - persist", rtc_persist_test),

TESTS/mbed_hal/sleep/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void us_ticker_isr(const ticker_data_t * const ticker_data)
8787
us_ticker_clear_interrupt();
8888
}
8989

90-
#ifdef DEVICE_LOWPOWERTIMER
90+
#ifdef DEVICE_LPTICKER
9191
void lp_ticker_isr(const ticker_data_t *const ticker_data)
9292
{
9393
lp_ticker_clear_interrupt();
@@ -131,7 +131,7 @@ void sleep_usticker_test()
131131
TEST_ASSERT_TRUE(sleep_manager_can_deep_sleep());
132132
}
133133

134-
#ifdef DEVICE_LOWPOWERTIMER
134+
#ifdef DEVICE_LPTICKER
135135

136136
/* Test that wake-up time from sleep should be less than 10 ms and
137137
* low power ticker interrupt can wake-up target from sleep. */
@@ -220,7 +220,7 @@ utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
220220
{
221221
GREENTEA_SETUP(60, "default_auto");
222222
us_ticker_init();
223-
#if DEVICE_LOWPOWERTIMER
223+
#if DEVICE_LPTICKER
224224
lp_ticker_init();
225225
#endif
226226
/* Suspend RTOS Kernel to enable sleep modes. */
@@ -230,7 +230,7 @@ utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
230230

231231
Case cases[] =
232232
{ Case("sleep - source of wake-up - us ticker", sleep_usticker_test, greentea_failure_handler),
233-
#if DEVICE_LOWPOWERTIMER
233+
#if DEVICE_LPTICKER
234234
Case("deep-sleep - source of wake-up - lp ticker",deepsleep_lpticker_test, greentea_failure_handler),
235235
Case("deep-sleep - high-speed clocks are turned off",deepsleep_high_speed_clocks_turned_off_test, greentea_failure_handler),
236236
#endif

targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/lp_ticker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "lp_ticker_api.h"
2626
#include "platform_devices.h"
2727

28-
#if DEVICE_LOWPOWERTIMER
28+
#if DEVICE_LPTICKER
2929
/**
3030
* \brief Calculate clocks to us
3131
*

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/TARGET_USENSE/mbed_overrides.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void NMI_Handler(void)
4646
gpio_init_in(&gpio, PTA4);
4747
}
4848

49-
#if DEVICE_RTC || DEVICE_LOWPOWERTIMER
49+
#if DEVICE_RTC || DEVICE_LPTICKER
5050
// Enable the RTC oscillator if available on the board
5151
void rtc_setup_oscillator(RTC_Type *base)
5252
{

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/rtc_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
#include "rtc_api.h"
1717

18-
#if DEVICE_RTC || DEVICE_LOWPOWERTIMER
18+
#if DEVICE_RTC || DEVICE_LPTICKER
1919

2020
#include "pinmap.h"
2121
#include "fsl_rtc.h"

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC/rtc_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
#include "rtc_api.h"
1717

18-
#if DEVICE_RTC || DEVICE_LOWPOWERTIMER
18+
#if DEVICE_RTC || DEVICE_LPTICKER
1919

2020
#include "pinmap.h"
2121
#include "fsl_rtc.h"

targets/TARGET_Silicon_Labs/TARGET_EFM32/rtcc.c

Lines changed: 1 addition & 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_LOWPOWERTIMER
25+
#if DEVICE_RTC || DEVICE_LPTICKER
2626

2727
/* Use RTCC on devices that have it */
2828
#if defined(RTCC_PRESENT)

0 commit comments

Comments
 (0)