Code to shut down ClockManager-controlled devices.

This commit is contained in:
Jared Boone 2015-08-01 13:43:58 -07:00
parent 1d16cd8aac
commit c025a2bba2
2 changed files with 6 additions and 0 deletions

View File

@ -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);
}

View File

@ -43,6 +43,7 @@ public:
}
void init();
void shutdown();
void run_from_irc();
void run_at_full_speed();