From 6a09b71204f81fbf20446fdb9cbb32a7642efac2 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 30 Nov 2022 12:40:37 -0600 Subject: [PATCH] pin maps for 3rd UART --- hwconf/other/hw_unity.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hwconf/other/hw_unity.h b/hwconf/other/hw_unity.h index 1dab3a3e..f8e322d6 100644 --- a/hwconf/other/hw_unity.h +++ b/hwconf/other/hw_unity.h @@ -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