mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-02 23:01:47 +00:00
Code to shut down ClockManager-controlled devices.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user