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
use crate::reg::prelude::*;
use drone_core::reg;
reg! {
pub STK CTRL => {
address => 0xE000_E010;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
COUNTFLAG => { offset => 16; width => 1; traits => { RRRegField WWRegField } };
CLKSOURCE => { offset => 2; width => 1; traits => { RRRegField WWRegField } };
TICKINT => { offset => 1; width => 1; traits => { RRRegField WWRegField } };
ENABLE => { offset => 0; width => 1; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub STK LOAD => {
address => 0xE000_E014;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
RELOAD => { offset => 0; width => 24; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub STK VAL => {
address => 0xE000_E018;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
CURRENT => { offset => 0; width => 24; traits => { RRRegField WWRegField } };
};
};
}
reg! {
pub STK CALIB => {
address => 0xE000_E01C;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg RoReg };
fields => {
NOREF => { offset => 31; width => 1; traits => { RRRegField RoRRegField } };
SKEW => { offset => 30; width => 1; traits => { RRRegField RoRRegField } };
TENMS => { offset => 0; width => 24; traits => { RRRegField RoRRegField } };
};
};
}