1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! CPU caches, MPU regions and SYSCFG fixes that must run before the peripherals.
//!
//! D-cache stays OFF, so SDRAM / D2 SRAM are coherent with the LTDC and SAI DMA engines
//! without any cache maintenance. The MPU still marks those regions non-cacheable so the
//! layout stays correct the day D-cache is enabled (README §caches, rev.Y erratum).
use info;
use pac;
/// I-cache on, D-cache off; MPU non-cacheable regions: 0 = SDRAM (64 MiB), 1 = D2 SRAM (256 KiB).
/// Close the PA0/PA1/PC2/PC3 dual-pad analog switches (README §dual-pad, TFBGA240).
/// Run before the ADC (top-left knob) and the BACK/INFO buttons, or they read garbage.