| | |
| | | uint8_t g_start_send_flag = 0,sync_seq=0,usart_send_flag; |
| | | u16 usart_timer=0; |
| | | uint16_t sysscal; |
| | | u16 tag_recv_timer, tag_timer,last_polltime; |
| | | u16 tag_recv_timer, tag_timer,last_polltime,userdata_timer; |
| | | extern uint16_t g_Resttimer,heartbeat_timer,sync_timer; |
| | | extern uint8_t g_pairstart,getrange_success; |
| | | u8 neartimout_timer=0,flag_syncbase=0,flag_newsecond=0; |
| | |
| | | if (TIM_GetITStatus(TIM3, TIM_IT_Update) != RESET) //??TIM3???????? |
| | | { |
| | | TIM_ClearITPendingBit(TIM3, TIM_IT_Update ); //??TIMx?????? |
| | | main_logic(); |
| | | main_logic(); |
| | | userdata_timer++; |
| | | time32_incr++; |
| | | heartbeat_timer++; |
| | | sync_timer++; |
| | |
| | | TagListUpdate(); |
| | | } |
| | | |
| | | if(g_Resttimer++>20000) |
| | | if(g_Resttimer++>10000) |
| | | { |
| | | NVIC_SystemReset(); |
| | | //NVIC_SystemReset(); |
| | | } |
| | | |
| | | |