Skip to content

Commit

Permalink
Update MXRT sleep function
Browse files Browse the repository at this point in the history
Signed-off-by: Mahesh Mahadevan <[email protected]>
  • Loading branch information
mmahadevan108 committed Dec 13, 2019
1 parent 126df98 commit 3b5ca18
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_IMX/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3b5ca18

Please sign in to comment.