Lines Matching refs:timeout
162 uint32_t timeout = CAN_TIMEOUT; in can_init() local
170 while((CAN_STAT_IWS != (CAN_STAT(can_periph) & CAN_STAT_IWS)) && (0U != timeout)) { in can_init()
171 timeout--; in can_init()
222 timeout = CAN_TIMEOUT; in can_init()
224 while((CAN_STAT_IWS == (CAN_STAT(can_periph) & CAN_STAT_IWS)) && (0U != timeout)) { in can_init()
225 timeout--; in can_init()
228 if(0U != timeout) { in can_init()
677 uint32_t timeout = CAN_TIMEOUT; in can_working_mode_set() local
685 while((CAN_STAT_IWS != (CAN_STAT(can_periph) & CAN_STAT_IWS)) && (0U != timeout)) { in can_working_mode_set()
686 timeout--; in can_working_mode_set()
697 while((0U != (CAN_STAT(can_periph) & (CAN_STAT_IWS | CAN_STAT_SLPWS))) && (0U != timeout)) { in can_working_mode_set()
698 timeout--; in can_working_mode_set()
711 while((CAN_STAT_SLPWS != (CAN_STAT(can_periph) & CAN_STAT_SLPWS)) && (0U != timeout)) { in can_working_mode_set()
712 timeout--; in can_working_mode_set()
735 uint32_t timeout = CAN_TIMEOUT; in can_wakeup() local
740 while((0U != (CAN_STAT(can_periph) & CAN_STAT_SLPWS)) && (0x00U != timeout)) { in can_wakeup()
741 timeout--; in can_wakeup()