samples: mec15xxevb_assy6853/pm: shorten wait after deep sleep
The origin for sleeping for 3ms after coming out of deep sleep was to wait for PLL to lock so that UART would not send garbage characters due to incorrect clock. In the deep sleep code, it spins to wait for the PLL to lock so there is no need to wait for 3ms in the app. So shorten it like other busy wait. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
fd1d93e552
commit
2e7831562a
|
@ -187,7 +187,7 @@ int test_pwr_mgmt_multithread(bool use_logging, u8_t cycles)
|
|||
|
||||
k_msleep(CONFIG_SYS_PM_MIN_RESIDENCY_DEEP_SLEEP_1 + 500);
|
||||
|
||||
k_busy_wait(3000);
|
||||
k_busy_wait(100);
|
||||
|
||||
if (use_logging) {
|
||||
LOG_INF("Wake from Deep Sleep\n");
|
||||
|
@ -233,7 +233,7 @@ int test_pwr_mgmt_singlethread(bool use_logging, u8_t cycles)
|
|||
|
||||
k_msleep(CONFIG_SYS_PM_MIN_RESIDENCY_DEEP_SLEEP_1 + 1000);
|
||||
|
||||
k_busy_wait(3000);
|
||||
k_busy_wait(100);
|
||||
|
||||
if (use_logging) {
|
||||
LOG_INF("Wake from Deep Sleep\n");
|
||||
|
|
Loading…
Reference in New Issue