You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 regels
663 B

  1. #ifndef _UART_INTERRUPT_H_
  2. #define _UART_INTERRUPT_H_
  3. /*****************宏定义*************************/
  4. #define DEMO_UART UART2 // 选择串口UART2
  5. #define BOARD_DEBUG_UART_BAUDRATE 115200 //设置波特率115200
  6. #define DEMO_RING_BUFFER_SIZE 64 //UART接收缓存
  7. #define DEMO_UART2_ARR_SIZE 64 //UART2发送数组大小
  8. #define DEMO_RS485_ARR_SIZE 64 //RS485缓存数组大小
  9. /*****************函数声明*************************/
  10. void UART2_InterrputInit(); //UART2串口初始化
  11. void UART1_InterrputInit(); //UART0串口初始化
  12. void UART1_sendData(); //UART1发送1帧数据
  13. void UART2_sendData(); //UART2发送数组
  14. void RS485_Recieve_Data(); //RS485接收数据
  15. #endif