mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[ion/device] Proper flash cache flushing (fix #439)
This commit is contained in:
committed by
LeaNumworks
parent
26edd70bd7
commit
306904aec2
@@ -40,11 +40,13 @@ static void close() {
|
||||
if (FLASH.ACR()->getDCEN()) {
|
||||
FLASH.ACR()->setDCEN(false);
|
||||
FLASH.ACR()->setDCRST(true);
|
||||
FLASH.ACR()->setDCRST(false);
|
||||
FLASH.ACR()->setDCEN(true);
|
||||
}
|
||||
if (FLASH.ACR()->getICEN()) {
|
||||
FLASH.ACR()->setICEN(false);
|
||||
FLASH.ACR()->setICRST(true);
|
||||
FLASH.ACR()->setICRST(false);
|
||||
FLASH.ACR()->setICEN(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user