| | |
| | | uint16_t sysscal; |
| | | u16 tag_recv_timer, tag_timer,last_polltime; |
| | | extern uint16_t g_Resttimer,heartbeat_timer,sync_timer; |
| | | extern uint8_t g_pairstart; |
| | | extern uint8_t g_pairstart,getrange_success; |
| | | u8 neartimout_timer=0,flag_syncbase=0,flag_newsecond=0; |
| | | extern u16 tyncpoll_time,target_time; |
| | | extern uint32_t synclost_timer,current_syncid; |
| | |
| | | //GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_RESET); |
| | | if(sync_timer>=1000) |
| | | { |
| | | // if(getrange_success==0) |
| | | // { |
| | | // NVIC_SystemReset(); |
| | | // } |
| | | flag_newsecond=1; |
| | | //GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_SET); |
| | | sync_timer=0; |
| | | TagListUpdate(); |
| | | } |
| | | |
| | | if(g_Resttimer++>2000) |
| | | if(g_Resttimer++>5000) |
| | | { |
| | | NVIC_SystemReset(); |
| | | } |
| | |
| | | // } |
| | | |
| | | } |
| | | void HardFalut_Handler(void) |
| | | { |
| | | while(1) |
| | | { |
| | | NVIC_SystemReset(); |
| | | } |
| | | |
| | | } |
| | | |