mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
Code to shut down ClockManager-controlled devices.
This commit is contained in:
parent
1d16cd8aac
commit
c025a2bba2
2 changed files with 6 additions and 0 deletions
|
@ -296,6 +296,11 @@ void ClockManager::init() {
|
|||
clock_generator.reset_plls();
|
||||
}
|
||||
|
||||
void ClockManager::shutdown() {
|
||||
run_from_irc();
|
||||
clock_generator.reset();
|
||||
}
|
||||
|
||||
void ClockManager::run_from_irc() {
|
||||
change_clock_configuration(cgu::CLK_SEL::IRC);
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ public:
|
|||
}
|
||||
|
||||
void init();
|
||||
void shutdown();
|
||||
|
||||
void run_from_irc();
|
||||
void run_at_full_speed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue