mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 11:37:06 +08:00
[Lisa MX] Added option to remap UART1
This commit is contained in:
@@ -135,11 +135,19 @@
|
|||||||
|
|
||||||
|
|
||||||
/* UART */
|
/* UART */
|
||||||
|
#if REMAP_UART1
|
||||||
|
#define UART1_GPIO_AF GPIO_AF7
|
||||||
|
#define UART1_GPIO_PORT_RX GPIOB
|
||||||
|
#define UART1_GPIO_RX GPIO7
|
||||||
|
#define UART1_GPIO_PORT_TX GPIOB
|
||||||
|
#define UART1_GPIO_TX GPIO6
|
||||||
|
#else
|
||||||
#define UART1_GPIO_AF GPIO_AF7
|
#define UART1_GPIO_AF GPIO_AF7
|
||||||
#define UART1_GPIO_PORT_RX GPIOA
|
#define UART1_GPIO_PORT_RX GPIOA
|
||||||
#define UART1_GPIO_RX GPIO10
|
#define UART1_GPIO_RX GPIO10
|
||||||
#define UART1_GPIO_PORT_TX GPIOA
|
#define UART1_GPIO_PORT_TX GPIOA
|
||||||
#define UART1_GPIO_TX GPIO9
|
#define UART1_GPIO_TX GPIO9
|
||||||
|
#endif /* REMAP_UART1 */
|
||||||
|
|
||||||
#define UART2_GPIO_AF GPIO_AF7
|
#define UART2_GPIO_AF GPIO_AF7
|
||||||
#define UART2_GPIO_PORT_RX GPIOA
|
#define UART2_GPIO_PORT_RX GPIOA
|
||||||
|
|||||||
Reference in New Issue
Block a user