mirror of https://github.com/ARMmbed/mbed-os.git
Update MXRT sleep function
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>pull/12095/head
parent
126df98c39
commit
3b5ca18924
|
@ -23,13 +23,9 @@ extern bool serial_check_tx_ongoing();
|
|||
|
||||
void hal_sleep(void)
|
||||
{
|
||||
vPortPRE_SLEEP_PROCESSING(kCLOCK_ModeWait);
|
||||
|
||||
__DSB();
|
||||
__WFI();
|
||||
__ISB();
|
||||
|
||||
vPortPOST_SLEEP_PROCESSING(kCLOCK_ModeWait);
|
||||
}
|
||||
|
||||
void hal_deepsleep(void)
|
||||
|
|
Loading…
Reference in New Issue