添加RS485支持

This commit is contained in:
2024-11-28 17:23:59 +08:00
parent 5936f69ec4
commit 70e3e162ae
3 changed files with 12 additions and 6 deletions

View File

@@ -34,12 +34,14 @@
#define USART_RCU RCU_USART0
#define USART_GPIO_RCU RCU_GPIOA
#define USARET_GPIO_PORT GPIOA
#define USART_GPIO_PORT GPIOA
#define USART_TX_PIN GPIO_PIN_2
#define USART_RX_PIN GPIO_PIN_3
#define USART0_PHY USART0
#define USART_BAUDRATE 115200U
#define USART_EN_PIN GPIO_PIN_4
#define US_TRAN_GPIO_RCU RCU_GPIOB
#define US_TRAN_GPIO_PORT GPIOB
#define US_TRAN_PIN GPIO_PIN_1