mirror of https://github.com/ARMmbed/mbed-os.git
Platform: Improve mbed_sleep.h
* Qualify inclusion of sleep_api.h * use standard `inline` qualification instead of the non standard `__INLINE`pull/6364/head
parent
9f096cf4f1
commit
214e687230
|
@ -24,7 +24,7 @@
|
||||||
#ifndef MBED_SLEEP_H
|
#ifndef MBED_SLEEP_H
|
||||||
#define MBED_SLEEP_H
|
#define MBED_SLEEP_H
|
||||||
|
|
||||||
#include "sleep_api.h"
|
#include "hal/sleep_api.h"
|
||||||
#include "mbed_toolchain.h"
|
#include "mbed_toolchain.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
@ -128,7 +128,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
|
* Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be
|
||||||
* able to access the LocalFileSystem
|
* able to access the LocalFileSystem
|
||||||
*/
|
*/
|
||||||
__INLINE static void sleep(void)
|
static inline void sleep(void)
|
||||||
{
|
{
|
||||||
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
|
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
|
||||||
#if DEVICE_SLEEP
|
#if DEVICE_SLEEP
|
||||||
|
@ -158,7 +158,7 @@ __INLINE static void sleep(void)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
MBED_DEPRECATED_SINCE("mbed-os-5.6", "One entry point for an application, use sleep()")
|
MBED_DEPRECATED_SINCE("mbed-os-5.6", "One entry point for an application, use sleep()")
|
||||||
__INLINE static void deepsleep(void)
|
static inline void deepsleep(void)
|
||||||
{
|
{
|
||||||
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
|
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
|
||||||
#if DEVICE_SLEEP
|
#if DEVICE_SLEEP
|
||||||
|
|
Loading…
Reference in New Issue