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
use crate::reg::prelude::*;
use drone_core::reg;
reg! {
pub TPIU ACPR => {
address => 0xE004_0010;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
SWOSCALER => { offset => 0; width => 16; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub TPIU SPPR => {
address => 0xE004_00F0;
size => 0x20;
reset => 0x0000_0001;
traits => { RReg WReg };
fields => {
TXMODE => { offset => 0; width => 2; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub TPIU FFCR => {
address => 0xE004_0304;
size => 0x20;
reset => 0x0000_0102;
traits => { RReg WReg };
fields => {
TrigIn => { offset => 8; width => 1; traits => { RRRegField RoRRegField } };
EnFCont => { offset => 1; width => 1; traits => { RRRegField WWRegField } };
};
};
}