Skip to content

Commit

Permalink
Fix AT32 UART 7 and 8
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Aug 11, 2023
1 parent 807a722 commit c122292
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 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 @@ -321,11 +321,15 @@ const uartHardware_t uartHardware[UARTDEV_COUNT] = {
#endif
.rxPins = {
{ DEFIO_TAG_E(PC3), GPIO_MUX_8 },
{ DEFIO_TAG_E(PC9), GPIO_MUX_7 },
{ DEFIO_TAG_E(PC9), GPIO_MUX_8 },
// { 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(PC8), GPIO_MUX_8 },
// { 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 c122292

Please sign in to comment.