Skip to content

Commit dce5a2f

Browse files
authored
Merge pull request #6209 from pan-/improve-sleep-header
Platform: Improve mbed_sleep.h
2 parents 8b6a7aa + 56bc7fb commit dce5a2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform/mbed_sleep.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#ifndef MBED_SLEEP_H
2525
#define MBED_SLEEP_H
2626

27-
#include "sleep_api.h"
27+
#include "hal/sleep_api.h"
2828
#include "mbed_toolchain.h"
2929
#include <stdbool.h>
3030

@@ -128,7 +128,7 @@ void sleep_manager_sleep_auto(void);
128128
* Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be
129129
* able to access the LocalFileSystem
130130
*/
131-
__INLINE static void sleep(void)
131+
static inline void sleep(void)
132132
{
133133
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
134134
#if DEVICE_SLEEP
@@ -158,7 +158,7 @@ __INLINE static void sleep(void)
158158
*/
159159

160160
MBED_DEPRECATED_SINCE("mbed-os-5.6", "One entry point for an application, use sleep()")
161-
__INLINE static void deepsleep(void)
161+
static inline void deepsleep(void)
162162
{
163163
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
164164
#if DEVICE_SLEEP

0 commit comments

Comments
 (0)