| | |
| | | extern uint16_t g_Resttimer; |
| | | extern uint8_t g_pairstart; |
| | | void SysTick_Handler(void) |
| | | {uint16_t i; |
| | | { |
| | | time32_incr++; |
| | | g_UWB_com_interval++; |
| | | |
| | |
| | | // { |
| | | // dis_after_filter = DEFAULT_DISTANCE; |
| | | // } |
| | | #ifdef WORK_MODE_ANCHOR |
| | | tag_recv_timer++; |
| | | TagDistClear(); |
| | | if(g_pairstart!=1) |
| | | main_logic(); |
| | | #endif |
| | | //#ifdef WORK_MODE_ANCHOR |
| | | //tag_recv_timer++; |
| | | // TagDistClear(); |
| | | // if(g_pairstart!=1) |
| | | // main_logic(); |
| | | //#endif |
| | | |
| | | } |
| | | |
| | |
| | | UART_CheckReceive(); |
| | | } |
| | | |
| | | /************************************************************* |
| | | |
| | | if(USART_GetITStatus(USARTy, USART_IT_TXE) != RESET) |
| | | |
| | | { |
| | | // if(USART_GetITStatus(USARTy, USART_IT_TXE) != RESET) |
| | | |
| | | USART_SendData(USARTy, TxBuffer1[TxCounter1++]); |
| | | // { |
| | | |
| | | } |
| | | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/ |
| | | // USART_SendData(USARTy, TxBuffer1[TxCounter1++]); |
| | | |
| | | // } |
| | | |
| | | } |
| | | |