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
//! Control for maintaining time sync between the controller and peripherals
/// PID controller for correcting peripheral cycle timing
/// with simple saturation to prevent excessive integral windup.
///
/// Because the true error is known to be almost exactly linear
/// after the initial discrepancy is resolved, the windup saturation
/// limit can be chosen to be compatible with the peripheral clock error
/// without driving excessive overshoot.
pub