pile_com_stm32/main_old/uart.h

29 lines
596 B
C
Raw Normal View History

2023-07-20 10:17:11 +08:00
#ifndef _UART_H_
#define _UART_H_
#define RS485_TXD_PIN 17
#define RS485_RXD_PIN 18
#define RS485_RTS_PIN 8
#define RS485_CTS_PIN (-1)
// #define MCU_TXD_PIN 17
// #define MCU_RXD_PIN 18
#define PRINT_TXD_PIN 16
#define PRINT_RXD_PIN 15
#define PRINT_RTS_PIN (-1)
#define PRINT_CTS_PIN 3
#define RS485_UART_PORT_NUM (0)
#define RS485_UART_BAUD_RATE (115200)
#define RS485_TASK_STACK_SIZE (1024)
#define PRINT_UART_PORT_NUM (1)
#define PRINT_UART_BAUD_RATE (115200)
#define PRINT_TASK_STACK_SIZE (1024)
#endif