uart2.h 844 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*******************************************************************************
  2. *
  3. * scheduler
  4. * Soft version: switch V1.00
  5. * File Name: uart2.h
  6. * Author : zzw (zhangzw_3@163.com)
  7. * creation date: 2024-01-17
  8. * module description: time2 1ms
  9. * Copyright (C) reserve
  10. *
  11. ********************************************************************************/
  12. #if !defined(__UART2_H__)
  13. #define __UART2_H__
  14. #define A_HLW P5_5 //A
  15. #define B_HLW P5_4 //B
  16. void uart2_gpio_init();
  17. void uart2_init(void);
  18. void UART2_send(unsigned char c);
  19. void UART2_send_buf(char *s);
  20. void Start_Send_UartData(unsigned char len);
  21. void uart_send (unsigned char *buf, unsigned char len);
  22. void open_first_passageway(void);
  23. void open_second_passageway(void);
  24. void open_third_passageway(void);
  25. void close_all_passageway(void);
  26. #endif
  27. /* EOF */