Commit db2f0076 authored by schneider's avatar schneider
Browse files

Merge branch 'schneider/fix-deepsleep' into 'master'

fix(sleep): Keep HIRC turned on when switching back to HIRC96

Closes #236

See merge request !488
parents d54fc1b3 02d1064c
Pipeline #5297 passed with stages
in 1 minute and 23 seconds
......@@ -195,6 +195,8 @@ void sleep_deepsleep(void)
BbDrvDisable();
}
turnOffClocks();
SYS_ClockSourceEnable(SYS_CLOCK_HIRC);
old_clkcn = MXC_GCR->clkcn;
switchToHIRC();
deepsleep();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment