| | |
| | | { |
| | | tag_recv_timer++; |
| | | TagDistClear(); |
| | | if(g_com_map[ALARM_DEV]!=0) |
| | | if(g_com_map[ANC_POLL]) |
| | | { |
| | | if((sync_timer-10)%g_com_map[COM_INTERVAL]==tyncpoll_time&&sync_timer>=10&&sync_timer!=1010) |
| | | { |
| | | g_start_send_flag=1; |
| | | } |
| | | } |
| | | //if(g_com_map[ALARM_DEV]!=0) |
| | | main_logic(); |
| | | #ifdef USART_INTEGRATE_OUTPUT |
| | | if(usart_timer++>=g_com_map[COM_INTERVAL]) |
| | |
| | | SyncPoll(0); |
| | | } |
| | | }else{ //鏍囩鍚屾澶勭悊 |
| | | if((sync_timer-10)%g_com_map[COM_INTERVAL]==tyncpoll_time&&sync_timer>=10) |
| | | if((sync_timer-10)%g_com_map[COM_INTERVAL]==tyncpoll_time&&sync_timer>=10&&sync_timer!=1010) |
| | | { |
| | | GPIO_WriteBit(GPIOA, GPIO_Pin_9, Bit_SET); |
| | | // GPIO_WriteBit(GPIOA, GPIO_Pin_9, Bit_SET); |
| | | g_start_send_flag=1; |
| | | } |
| | | |