From 35f1b4ab533fa6ff8d022e5ebab1ead7c4578534 Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Mon, 2 Mar 2020 15:06:26 -0800 Subject: [PATCH] Remove mbed power management deprecated API --- .../targets/TARGET_Maxim/MaximBLE.cpp | 4 +-- platform/mbed_power_mgmt.h | 28 ------------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_Maxim/MaximBLE.cpp b/features/FEATURE_BLE/targets/TARGET_Maxim/MaximBLE.cpp index 619c5142d2..2afef2f736 100644 --- a/features/FEATURE_BLE/targets/TARGET_Maxim/MaximBLE.cpp +++ b/features/FEATURE_BLE/targets/TARGET_Maxim/MaximBLE.cpp @@ -322,8 +322,8 @@ void MaximBLE::waitForEvent(void) // go to sleep if (hciDrvReadyToSleep()) { - // go to deep sleep - deepsleep(); + // go to sleep + sleep(); hciDrvResume(); } else { diff --git a/platform/mbed_power_mgmt.h b/platform/mbed_power_mgmt.h index 86d57d16e6..caf1d02d73 100644 --- a/platform/mbed_power_mgmt.h +++ b/platform/mbed_power_mgmt.h @@ -201,34 +201,6 @@ static inline void sleep(void) #endif /* DEVICE_SLEEP */ } -/** Send the microcontroller to deep sleep - * - * @deprecated - * Do not use this function. Applications should use sleep() API which puts the system in deepsleep mode if supported. - * - * @note This function can be a noop if not implemented by the platform. - * @note This function will be a noop in debug mode (debug build profile when MBED_DEBUG is defined) - * - * This processor is setup ready for deep sleep, and sent to sleep. This mode - * has the same sleep features as sleep plus it powers down peripherals and clocks. All state - * is still maintained. - * - * The processor can only be woken up by an external interrupt on a pin or a watchdog timer. - * - * @note - * The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored. - * Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be - * able to access the LocalFileSystem - */ - -MBED_DEPRECATED_SINCE("mbed-os-5.6", "One entry point for an application, use sleep()") -static inline void deepsleep(void) -{ -#if DEVICE_SLEEP - sleep_manager_sleep_auto(); -#endif /* DEVICE_SLEEP */ -} - /** Provides the time spent in sleep mode since boot. * * @return Time spent in sleep