From e5659d7d4799f85791fdfe103664f3366db23959 Mon Sep 17 00:00:00 2001 From: E Thomas Date: Sun, 15 Jul 2018 10:40:38 -0400 Subject: [PATCH] Added support for PX4V1 UARTD in HAL_PX4_Class --- libraries/AP_HAL_PX4/HAL_PX4_Class.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_HAL_PX4/HAL_PX4_Class.cpp b/libraries/AP_HAL_PX4/HAL_PX4_Class.cpp index ee3622f56f..0c904966de 100644 --- a/libraries/AP_HAL_PX4/HAL_PX4_Class.cpp +++ b/libraries/AP_HAL_PX4/HAL_PX4_Class.cpp @@ -76,6 +76,13 @@ static PX4::SPIDeviceManager spi_mgr_instance; #define UARTD_DEFAULT_DEVICE "/dev/null" #define UARTE_DEFAULT_DEVICE "/dev/null" #define UARTF_DEFAULT_DEVICE "/dev/null" +#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V1) +#define UARTA_DEFAULT_DEVICE "/dev/ttyACM0" +#define UARTB_DEFAULT_DEVICE "/dev/ttyS3" +#define UARTC_DEFAULT_DEVICE "/dev/ttyS2" +#define UARTD_DEFAULT_DEVICE "/dev/ttyS1" +#define UARTE_DEFAULT_DEVICE "/dev/null" +#define UARTF_DEFAULT_DEVICE "/dev/null" #else #define UARTA_DEFAULT_DEVICE "/dev/ttyACM0" #define UARTB_DEFAULT_DEVICE "/dev/ttyS3"