mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 03:29:58 +02:00
[ion] Enable/disable FSMC clock with all clocks
Change-Id: I541532b1803181109d788dd943a6384b3b09db63
This commit is contained in:
@@ -199,14 +199,20 @@ void initClocks() {
|
||||
apb2enr.setSDIOEN(true);
|
||||
#endif
|
||||
RCC.APB2ENR()->set(apb2enr);
|
||||
|
||||
RCC.AHB3ENR()->setFSMCEN(true);
|
||||
}
|
||||
|
||||
void shutdownClocks() {
|
||||
|
||||
// Reset values, everything off
|
||||
RCC.APB2ENR()->set(0x00008000);
|
||||
RCC.APB1ENR()->set(0x00000400);
|
||||
|
||||
// AHB1 bus
|
||||
RCC.AHB1ENR()->set(0);
|
||||
|
||||
RCC.AHB3ENR()->setFSMCEN(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user