Home
last modified time | relevance | path

Searched refs:tseg1 (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
219 *tseg1 = tseg - *tseg2; in can_update_spt()
220 if (*tseg1 > TSEG1_MAX) in can_update_spt()
222 *tseg1 = TSEG1_MAX; in can_update_spt()
223 *tseg2 = tseg - *tseg1; in can_update_spt()
753 int tsegall, tseg = 0, tseg1 = 0, tseg2 = 0; in CAN_SetBaudRate() local
822 spt = can_update_spt(sampl_pt, tseg / 2, &tseg1, &tseg2); in CAN_SetBaudRate()
843 spt = can_update_spt(sampl_pt, best_tseg, &tseg1, &tseg2); in CAN_SetBaudRate()
858 u32BaudRate = clock_freq / (best_brp * (tseg1 + tseg2 + 1)); in CAN_SetBaudRate()
[all …]