Skip to content

Commit

Permalink
Merge pull request #10438 from TUNERC-Aria/TUNERC-Aria-tunercf405update
Browse files Browse the repository at this point in the history
Update TUNERCF405 target.h
  • Loading branch information
DzikuVx authored Nov 6, 2024
2 parents df9b18f + 95f0f47 commit de0d603
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/drivers/uart_inverter.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ void uartInverterSet(USART_TypeDef *USARTx, uartInverterLine_e line, bool enable

// UART4
#if defined(INVERTER_PIN_UART4_RX) || defined(INVERTER_PIN_UART4_TX)
if (USARTx == USART4) {
#if defined(STM32F4)
if (USARTx == UART4)
#else
if (USARTx == USART4)
#endif
{
#if defined(INVERTER_PIN_UART4_RX)
rx_pin = IOGetByTag(IO_TAG(INVERTER_PIN_UART4_RX));
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/main/target/TUNERCF405/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
#define USE_UART4
#define UART4_RX_PIN PA1
#define UART4_TX_PIN PA0
#define USE_UART_INVERTER
#define INVERTER_PIN_UART4_RX PC14

#define USE_UART5
#define UART5_RX_PIN PD2
Expand Down

0 comments on commit de0d603

Please sign in to comment.