Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- #ifndef _UART_INTERRUPT_H_
- #define _UART_INTERRUPT_H_
-
-
- /*****************宏定义*************************/
- #define DEMO_UART UART2 // 选择串口UART2
- #define BOARD_DEBUG_UART_BAUDRATE 115200 //设置波特率115200
- #define DEMO_RING_BUFFER_SIZE 64 //UART接收缓存
- #define DEMO_UART2_ARR_SIZE 64 //UART2发送数组大小
- #define DEMO_RS485_ARR_SIZE 64 //RS485缓存数组大小
-
- /*****************函数声明*************************/
- void UART2_InterrputInit(); //UART2串口初始化
- void UART1_InterrputInit(); //UART0串口初始化
- void UART1_sendData(); //UART1发送1帧数据
- void UART2_sendData(); //UART2发送数组
- void RS485_Recieve_Data(); //RS485接收数据
-
-
- #endif
|