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
use crate::reg::prelude::*;
use drone_core::reg;
reg! {
pub ITM TPR => {
address => 0xE000_0E40;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
PRIVMASK => { offset => 0; width => 32; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub ITM TCR => {
address => 0xE000_0E80;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
BUSY => { offset => 23; width => 1; traits => { RRRegField RoRRegField } };
TraceBusID => { offset => 16; width => 7; traits => { RRRegField WWRegField } };
GTSFREQ => { offset => 10; width => 2; traits => { RRRegField WWRegField } };
TSPrescale => { offset => 8; width => 2; traits => { RRRegField WWRegField } };
SWOENA => { offset => 4; width => 1; traits => { RRRegField WWRegField } };
TXENA => { offset => 3; width => 1; traits => { RRRegField WWRegField } };
SYNCENA => { offset => 2; width => 1; traits => { RRRegField WWRegField } };
TSENA => { offset => 1; width => 1; traits => { RRRegField WWRegField } };
ITMENA => { offset => 0; width => 1; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub ITM LAR => {
address => 0xE000_0FB0;
size => 0x20;
reset => 0x0000_0000;
traits => { WReg WoReg };
fields => {
UNLOCK => { offset => 0; width => 32; traits => { WWRegField WoWRegField } };
};
};
}