Skip to content

Commit

Permalink
Fix AT32 UART 7 and 8 (betaflight#13027)
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis authored and davidbitton committed Feb 5, 2024
1 parent eb20a52 commit 28f840b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/drivers/at32/serial_uart_at32f43x.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
#endif
.rxPins = {
{ DEFIO_TAG_E(PB3), GPIO_MUX_8 },
{ DEFIO_TAG_E(PC0), GPIO_MUX_8 },
{ DEFIO_TAG_E(PC1), GPIO_MUX_8 },
{ DEFIO_TAG_E(PE7), GPIO_MUX_8 },
{ DEFIO_TAG_E(PF6), GPIO_MUX_8 },
},
.txPins = {
{ DEFIO_TAG_E(PB4), GPIO_MUX_8 },
{ DEFIO_TAG_E(PC1), GPIO_MUX_8 },
{ DEFIO_TAG_E(PC0), GPIO_MUX_8 },
{ DEFIO_TAG_E(PE8), GPIO_MUX_8 },
{ DEFIO_TAG_E(PF7), GPIO_MUX_8 },
},
Expand Down Expand Up @@ -322,10 +322,14 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
.rxPins = {
{ DEFIO_TAG_E(PC3), GPIO_MUX_8 },
{ DEFIO_TAG_E(PC9), GPIO_MUX_7 },
{ DEFIO_TAG_E(PD14), GPIO_MUX_8 },
{ DEFIO_TAG_E(PE0), GPIO_MUX_8 },
},
.txPins = {
{ DEFIO_TAG_E(PC2), GPIO_MUX_8 },
{ DEFIO_TAG_E(PC8), GPIO_MUX_7 },
{ DEFIO_TAG_E(PD13), GPIO_MUX_8 },
{ DEFIO_TAG_E(PE1), GPIO_MUX_8 },
},
.rcc = RCC_APB1(UART8),
.irqn = UART8_IRQn,
Expand Down

0 comments on commit 28f840b

Please sign in to comment.