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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
use crate::reg::prelude::*;
use drone_core::reg;
reg! {
pub MPU TYPE => {
address => 0xE000_ED90;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg RoReg };
fields => {
IREGION => { offset => 16; width => 8; traits => { RRRegField RoRRegField } };
DREGION => { offset => 8; width => 8; traits => { RRRegField RoRRegField } };
SEPARATE => { offset => 0; width => 1; traits => { RRRegField RoRRegField } };
};
};
}
reg! {
pub MPU CTRL => {
address => 0xE000_ED94;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
PRIVDEFENA => { offset => 2; width => 1; traits => { RRRegField WWRegField } };
HFNMIENA => { offset => 1; width => 1; traits => { RRRegField WWRegField } };
ENABLE => { offset => 0; width => 1; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub MPU RNR => {
address => 0xE000_ED98;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
REGION => { offset => 0; width => 8; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub MPU RBAR => {
address => 0xE000_ED9C;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
ADDR => { offset => 5; width => 27; traits => { RRRegField WWRegField } };
VALID => { offset => 4; width => 1; traits => { RRRegField WWRegField } };
REGION => { offset => 0; width => 4; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub MPU RASR => {
address => 0xE000_EDA0;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
XN => { offset => 28; width => 1; traits => { RRRegField WWRegField } };
AP => { offset => 24; width => 3; traits => { RRRegField WWRegField } };
TEX => { offset => 19; width => 3; traits => { RRRegField WWRegField } };
S => { offset => 18; width => 1; traits => { RRRegField WWRegField } };
C => { offset => 17; width => 1; traits => { RRRegField WWRegField } };
B => { offset => 16; width => 1; traits => { RRRegField WWRegField } };
SRD => { offset => 8; width => 8; traits => { RRRegField WWRegField } };
SIZE => { offset => 1; width => 5; traits => { RRRegField WWRegField } };
ENABLE => { offset => 0; width => 1; traits => { RRRegField WWRegField } };
};
};
}