mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-06 13:07:47 +00:00
Code to shut down ClockManager-controlled devices.
This commit is contained in:
parent
1d16cd8aac
commit
c025a2bba2
@ -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…
x
Reference in New Issue
Block a user