mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix regression on wfi vs bio setting
This commit is contained in:
parent
3230946c73
commit
6e528f9678
1 changed files with 3 additions and 2 deletions
|
|
@ -215,13 +215,14 @@ fn susres_service() {
|
|||
} else {
|
||||
bio.update_bio_freq(24_000_000);
|
||||
}
|
||||
clk_mgr.set_fclk_fd(0xff); // set divider to 1:1 ratio
|
||||
// clk_mgr.set_fclk_fd(0xff); // set divider to 1:1 ratio
|
||||
clk_mgr.wfi();
|
||||
|
||||
// ~~~ time passes, but we're on carbonite so we don't notice ~~~
|
||||
|
||||
// clk_mgr.set_fclk_fd(fclk_fd_backup); // restore the FD before restoring potentially
|
||||
// fast PLL setting
|
||||
clk_mgr.restore_wfi();
|
||||
clk_mgr.set_fclk_fd(fclk_fd_backup); // restore the FD before restoring potentially fast PLL setting
|
||||
bio.update_bio_freq(clk_mgr.fclk);
|
||||
|
||||
// when wfi() returns, it means we've resumed
|
||||
|
|
|
|||
Loading…
Reference in a new issue