| | |
| | | u16 rtcm_i,gps_packlen; |
| | | u16 t1,t2,t3,t4; |
| | | extern volatile uint32_t time32_incr; |
| | | extern u16 sendtimes; |
| | | u16 last_sendtimes; |
| | | void UART_CheckReceive(void) |
| | | { |
| | | int32_t DMACnt = 0; |
| | |
| | | m_bEUARTCheckingRec = 0; |
| | | return; |
| | | } |
| | | if(time32_incr-lastusartdata_timer>300&&receiveingdata_flag) |
| | | if(time32_incr-lastusartdata_timer>450&&receiveingdata_flag) |
| | | { |
| | | gpsdataready_flag = 1; |
| | | receiveingdata_flag = 0; |
| | |
| | | rtcm_i = 0; |
| | | t1++; |
| | | waitggaend_flag = 1; |
| | | last_sendtimes = sendtimes; |
| | | sendtimes = 0; |
| | | if(g_com_map[DEV_ROLE]) |
| | | { |
| | | UWBSendOnePackData(RTCMdata,gps_packlen); |