您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

21 行
712 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. void ADC16_Recieve_Data(); //转换发送的电压数值
  16. #endif