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

Commit

Permalink
mbed_power_management - rename sleep --> mbed_sleep to avoid conflicts
Browse files Browse the repository at this point in the history
Fixes conflicts w/ unistd.h and boost::ut
  • Loading branch information
ladislas committed Nov 6, 2022
1 parent 278ea2a commit 858f475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/include/platform/mbed_power_mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void sleep_manager_sleep_auto(void);
* Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be
* able to access the LocalFileSystem
*/
static inline void sleep(void)
static inline void mbed_sleep(void)
{
#if DEVICE_SLEEP
#if (MBED_CONF_RTOS_PRESENT == 0) || (DEVICE_SYSTICK_CLK_OFF_DURING_SLEEP == 0) || defined(MBED_TICKLESS)
Expand Down
2 changes: 1 addition & 1 deletion platform/source/mbed_os_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void do_sleep_operation(OpT &op)
// we go round to set the timer again.
if (op.sleep_prepared()) {
// Enter HAL sleep (normal or deep)
sleep();
mbed_sleep();
}
}

Expand Down

0 comments on commit 858f475

Please sign in to comment.