Skip to content
This repository was archived by the owner on Mar 2, 2023. It is now read-only.

Commit 858f475

Browse files
committed
mbed_power_management - rename sleep --> mbed_sleep to avoid conflicts
Fixes conflicts w/ unistd.h and boost::ut
1 parent 278ea2a commit 858f475

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platform/include/platform/mbed_power_mgmt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void sleep_manager_sleep_auto(void);
192192
* Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be
193193
* able to access the LocalFileSystem
194194
*/
195-
static inline void sleep(void)
195+
static inline void mbed_sleep(void)
196196
{
197197
#if DEVICE_SLEEP
198198
#if (MBED_CONF_RTOS_PRESENT == 0) || (DEVICE_SYSTICK_CLK_OFF_DURING_SLEEP == 0) || defined(MBED_TICKLESS)

platform/source/mbed_os_timer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void do_sleep_operation(OpT &op)
170170
// we go round to set the timer again.
171171
if (op.sleep_prepared()) {
172172
// Enter HAL sleep (normal or deep)
173-
sleep();
173+
mbed_sleep();
174174
}
175175
}
176176

0 commit comments

Comments
 (0)