Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tawaki] Define pin for UART[68]_TX. #2649

Merged
merged 1 commit into from
Jan 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 14 additions & 3 deletions sw/airborne/boards/tawaki/chibios/common/tawaki.h
Original file line number Diff line number Diff line change
Expand Up @@ -631,17 +631,28 @@
*/

// In case, do dynamic config of UARTs
#ifndef USE_UART8_RX
#define USE_UART8_RX TRUE
#endif
#ifndef USE_UART8_TX // may be used in half duplex mode
#define USE_UART8_TX FALSE
#endif
// Tx and Rx are configured on the same pin, only one of them should be used
#define UART8_GPIO_PORT_TX PAL_PORT(LINE_RC1)
#define UART8_GPIO_TX PAL_PAD(LINE_RC1)
#define UART8_GPIO_PORT_RX PAL_PORT(LINE_RC1)
#define UART8_GPIO_RX PAL_PAD(LINE_RC1)
#define UART8_GPIO_AF RC1_UART_AF

// FIXME when RC2 is used for FrSky telemetry
#define USE_UART6_RX TRUE
#define USE_UART6_TX FALSE
#ifndef USE_UART6_RX
#define USE_UART6_RX FALSE
#endif
#ifndef USE_UART6_TX
#define USE_UART6_TX TRUE
#endif
// Tx and Rx are configured on the same pin, only one of them should be used
#define UART6_GPIO_PORT_TX PAL_PORT(LINE_RC2)
#define UART6_GPIO_TX PAL_PAD(LINE_RC2)
#define UART6_GPIO_PORT_RX PAL_PORT(LINE_RC2)
#define UART6_GPIO_RX PAL_PAD(LINE_RC2)
#define UART6_GPIO_AF RC2_USART_AF
Expand Down