Lines Matching refs:timeout
161 uint32_t timeout = GD32_CAN_TIMEOUT; in can_init() local
169 while((CAN_STAT_IWS != (CAN_STAT(can_periph) & CAN_STAT_IWS)) && (0U != timeout)){ in can_init()
170 timeout--; in can_init()
221 timeout = GD32_CAN_TIMEOUT; in can_init()
223 while((CAN_STAT_IWS == (CAN_STAT(can_periph) & CAN_STAT_IWS)) && (0U != timeout)){ in can_init()
224 timeout--; in can_init()
227 if(0U != timeout){ in can_init()
674 uint32_t timeout = GD32_CAN_TIMEOUT; in can_working_mode_set() local
682 while((CAN_STAT_IWS != (CAN_STAT(can_periph) & CAN_STAT_IWS)) && (0U != timeout)){ in can_working_mode_set()
683 timeout--; in can_working_mode_set()
694 while((0U != (CAN_STAT(can_periph) & (CAN_STAT_IWS | CAN_STAT_SLPWS))) && (0U != timeout)){ in can_working_mode_set()
695 timeout--; in can_working_mode_set()
708 while((CAN_STAT_SLPWS != (CAN_STAT(can_periph) & CAN_STAT_SLPWS)) && (0U != timeout)){ in can_working_mode_set()
709 timeout--; in can_working_mode_set()
732 uint32_t timeout = GD32_CAN_TIMEOUT; in can_wakeup() local
737 while((0U != (CAN_STAT(can_periph) & CAN_STAT_SLPWS)) && (0x00U != timeout)){ in can_wakeup()
738 timeout--; in can_wakeup()