| | |
| | | u8 neartimout_timer=0,flag_syncbase=0,flag_newsecond=0; |
| | | extern u16 tyncpoll_time,target_time; |
| | | extern uint32_t synclost_timer,current_syncid; |
| | | uint8_t juststart_timer=2,justselftest_timer=2,selftesttimer,rflosttimer; |
| | | extern u8 juststart_flag,justsleftest_flag,rf_flag; |
| | | void TIM3_IRQHandler(void) //TIM3?? |
| | | { |
| | | if (TIM_GetITStatus(TIM3, TIM_IT_Update) != RESET) //??TIM3???????? |
| | |
| | | flag_newsecond=1; |
| | | //GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_SET); |
| | | sync_timer=0; |
| | | if(juststart_timer>0) |
| | | { |
| | | juststart_timer--; |
| | | juststart_flag = 1; |
| | | }else{ |
| | | juststart_flag = 0; |
| | | } |
| | | if(justselftest_timer>0) |
| | | { |
| | | justselftest_timer--; |
| | | justsleftest_flag = 1; |
| | | }else{ |
| | | justsleftest_flag = 0; |
| | | } |
| | | if(rflosttimer>10) |
| | | { |
| | | rf_flag = 1; |
| | | }else{ |
| | | rflosttimer++; |
| | | rf_flag = 0; |
| | | } |
| | | selftesttimer++; |
| | | TagListUpdate(); |
| | | } |
| | | |