aerofc: fix UART port assignments

This commit is contained in:
Lucas De Marchi 2016-09-13 17:29:22 -03:00 committed by Lorenz Meier
parent 1eadee19c3
commit 3b3d4f385c
3 changed files with 16 additions and 2 deletions

View File

@ -11,4 +11,5 @@ set OUTPUT_DEV /dev/tap_esc
set MIXER quad_x
set USE_IO no
set MAVLINK_F "-r 1200 -d /dev/ttyS2"
param set SYS_COMPANION 0
set MAVLINK_F "-b 115200 -mode onboard -r 80000 -d /dev/ttyS1"

View File

@ -214,17 +214,23 @@
#define GPIO_USART1_RX GPIO_USART1_RX_2
#define DMAMAP_USART1_RX DMAMAP_USART1_RX_2
// Mavlink
// Companion
#define GPIO_USART2_TX GPIO_USART2_TX_1
#define GPIO_USART2_RX GPIO_USART2_RX_1
#define GPIO_USART2_CTS 0 // unused
#define GPIO_USART2_RTS 0 // unused
// GPS
#define GPIO_USART3_TX GPIO_USART3_TX_1
#define GPIO_USART3_RX GPIO_USART3_RX_1
#define GPIO_USART3_CTS 0 // unused
#define GPIO_USART3_RTS 0 // unused
// RC
#define GPIO_UART4_TX GPIO_UART4_TX_1
#define GPIO_UART4_RX GPIO_UART4_RX_1
#define GPIO_UART4_CTS 0 // unused
#define GPIO_UART4_RTS 0 // unused
// Serial console
#define GPIO_USART6_TX GPIO_USART6_TX_1

View File

@ -118,6 +118,13 @@
*/
#define GPIO_OTGFS_VBUS (GPIO_INPUT|GPIO_FLOAT|GPIO_SPEED_100MHz|GPIO_OPENDRAIN|GPIO_PORTA|GPIO_PIN9)
#define GPS_DEFAULT_UART_PORT "/dev/ttyS2"
/* RC Serial port
*/
#define RC_SERIAL_PORT "/dev/ttyS3"
#define INVERT_RC_INPUT(_s) while(0)
/* High-resolution timer
*/
#define HRT_TIMER 3 /* use timer3 for the HRT */