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
use crate::reg::prelude::*;
use drone_core::reg;
reg! {
pub DWT CTRL => {
address => 0xE000_1000;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
NUMCOMP => { offset => 28; width => 4; traits => { RRRegField } };
NOTRCPKT => { offset => 27; width => 1; traits => { RRRegField } };
NOEXTTRIG => { offset => 26; width => 1; traits => { RRRegField } };
NOCYCCNT => { offset => 25; width => 1; traits => { RRRegField } };
NOPRFCNT => { offset => 24; width => 1; traits => { RRRegField } };
CYCEVTENA => { offset => 22; width => 1; traits => { RRRegField WWRegField } };
FOLDEVTENA => { offset => 21; width => 1; traits => { RRRegField WWRegField } };
LSUEVTENA => { offset => 20; width => 1; traits => { RRRegField WWRegField } };
SLEEPEVTENA => { offset => 19; width => 1; traits => { RRRegField WWRegField } };
EXCEVTENA => { offset => 18; width => 1; traits => { RRRegField WWRegField } };
CPIEVTENA => { offset => 17; width => 1; traits => { RRRegField WWRegField } };
EXCTRCENA => { offset => 16; width => 1; traits => { RRRegField WWRegField } };
PCSAMPLEENA => { offset => 12; width => 1; traits => { RRRegField WWRegField } };
SYNCTAP => { offset => 10; width => 2; traits => { RRRegField WWRegField } };
CYCTAP => { offset => 9; width => 1; traits => { RRRegField WWRegField } };
POSTINIT => { offset => 5; width => 4; traits => { RRRegField WWRegField } };
POSTPRESET => { offset => 1; width => 4; traits => { RRRegField WWRegField } };
CYCCNTENA => { offset => 0; width => 1; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub DWT CYCCNT => {
address => 0xE000_1004;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
CYCCNT => { offset => 0; width => 32; traits => { RRRegField WWRegField } };
};
};
}