Home
last modified time | relevance | path

Searched refs:tseg2 (Results 1 – 1 of 1) sorted by relevance

/hal_nuvoton-3.4.0/m48x/StdDriver/src/
Dcan.c50 static int can_update_spt(int sampl_pt, int tseg, int *tseg1, int *tseg2);
200 static int can_update_spt(int sampl_pt, int tseg, int *tseg1, int *tseg2) in can_update_spt() argument
202 *tseg2 = tseg + 1 - (sampl_pt * (tseg + 1)) / 1000; in can_update_spt()
203 if (*tseg2 < TSEG2_MIN) in can_update_spt()
205 *tseg2 = TSEG2_MIN; in can_update_spt()
211 if (*tseg2 > TSEG2_MAX) in can_update_spt()
213 *tseg2 = TSEG2_MAX; in can_update_spt()
219 *tseg1 = tseg - *tseg2; in can_update_spt()
223 *tseg2 = tseg - *tseg1; in can_update_spt()
229 return 1000 * (tseg + 1 - *tseg2) / (tseg + 1); in can_update_spt()
[all …]