Skip to content

Commit b4034dc

Browse files
authored
Merge pull request #12551 from rajkan01/mpm_remove_deprecated
Remove mbed power management deprecated API
2 parents b611de8 + 35f1b4a commit b4034dc

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

features/FEATURE_BLE/targets/TARGET_Maxim/MaximBLE.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ void MaximBLE::waitForEvent(void)
322322

323323
// go to sleep
324324
if (hciDrvReadyToSleep()) {
325-
// go to deep sleep
326-
deepsleep();
325+
// go to sleep
326+
sleep();
327327
hciDrvResume();
328328
}
329329
else {

platform/mbed_power_mgmt.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -201,34 +201,6 @@ static inline void sleep(void)
201201
#endif /* DEVICE_SLEEP */
202202
}
203203

204-
/** Send the microcontroller to deep sleep
205-
*
206-
* @deprecated
207-
* Do not use this function. Applications should use sleep() API which puts the system in deepsleep mode if supported.
208-
*
209-
* @note This function can be a noop if not implemented by the platform.
210-
* @note This function will be a noop in debug mode (debug build profile when MBED_DEBUG is defined)
211-
*
212-
* This processor is setup ready for deep sleep, and sent to sleep. This mode
213-
* has the same sleep features as sleep plus it powers down peripherals and clocks. All state
214-
* is still maintained.
215-
*
216-
* The processor can only be woken up by an external interrupt on a pin or a watchdog timer.
217-
*
218-
* @note
219-
* The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored.
220-
* Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be
221-
* able to access the LocalFileSystem
222-
*/
223-
224-
MBED_DEPRECATED_SINCE("mbed-os-5.6", "One entry point for an application, use sleep()")
225-
static inline void deepsleep(void)
226-
{
227-
#if DEVICE_SLEEP
228-
sleep_manager_sleep_auto();
229-
#endif /* DEVICE_SLEEP */
230-
}
231-
232204
/** Provides the time spent in sleep mode since boot.
233205
*
234206
* @return Time spent in sleep

0 commit comments

Comments
 (0)