Merge pull request #568 from jaykup26/Unity_Third_Uart

3rd UART port for Unity/Xenith
This commit is contained in:
Benjamin Vedder 2022-12-02 09:05:47 +01:00 committed by GitHub
commit 303008dadc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -63,6 +63,15 @@
#define HW_UART_P_RX_PORT GPIOA
#define HW_UART_P_RX_PIN 10
// Pins for Third UART - on black connector next to bluetooth module
#define HW_UART_3_BAUD 115200
#define HW_UART_3_DEV SD2
#define HW_UART_3_GPIO_AF GPIO_AF_USART2
#define HW_UART_3_TX_PORT GPIOD
#define HW_UART_3_TX_PIN 6
#define HW_UART_3_RX_PORT GPIOD
#define HW_UART_3_RX_PIN 5
// SPI for DRV8301
#define HW_HAS_DRV8301
#define DRV8301_MOSI_GPIO GPIOC