User_Dri_main.c 598 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include "User_Dri_main.h"
  2. extern uint16 sendMessagelength;
  3. void User_Dri_timer1ms(void) //
  4. {
  5. if (Uart.uarttimejishu <= 500)
  6. {
  7. Uart.uarttimejishu++;
  8. }
  9. if (Uart.Uart_Tmreset <= 5050)
  10. {
  11. Uart.Uart_Tmreset++;
  12. }
  13. if (Uart.Uart_Tmcomcyc <= 550)
  14. {
  15. Uart.Uart_Tmcomcyc++;
  16. }
  17. if (Uart.Uart_Recivetime <= 200)
  18. {
  19. Uart.Uart_Recivetime++;
  20. }
  21. if ((Uart.TxCnt >= (sendMessagelength - 1)) && (Uart.Uart_Recivetime >= 15))
  22. {
  23. Uart.Recive_Flag = 0;
  24. }
  25. }