From 5202724f1989b87e9a644819a38dcebc777c8fcf Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 16 Dec 2019 16:10:28 -0800 Subject: [PATCH] fmurt1062-v1:Add nARMED Support --- boards/nxp/fmurt1062-v1/src/board_config.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/boards/nxp/fmurt1062-v1/src/board_config.h b/boards/nxp/fmurt1062-v1/src/board_config.h index 7e5edbc48a..b3274e5308 100644 --- a/boards/nxp/fmurt1062-v1/src/board_config.h +++ b/boards/nxp/fmurt1062-v1/src/board_config.h @@ -317,6 +317,14 @@ #define PIN_FLEXPWM2_PWMB0 /* P2:7 PWM2 B0 FMU_CAP1 */ (CAP_IOMUX | GPIO_FLEXPWM2_PWMB00_2) #define PIN_FLEXPWM2_PWMB3 /* P3:3 PWM2 A1 FMU_CAP2 */ (CAP_IOMUX | GPIO_FLEXPWM2_PWMB03_3) +#define nARMED_INPUT_IOMUX (IOMUX_CMOS_INPUT | IOMUX_PULL_UP_22K | IOMUX_DRIVE_HIZ) +#define nARMED_OUTPUT_IOMUX (IOMUX_CMOS_OUTPUT | IOMUX_PULL_KEEP | IOMUX_DRIVE_33OHM | IOMUX_SPEED_MEDIUM | IOMUX_SLEW_FAST) + +#define GPIO_nARMED_INIT /* GPIO_SD_B1_01 GPIO3_IO1 */ (GPIO_PORT3 | GPIO_PIN1 | GPIO_INPUT | nARMED_INPUT_IOMUX) +#define GPIO_nARMED /* GPIO_SD_B1_01 GPIO3_IO1 */ (GPIO_PORT3 | GPIO_PIN1 | GPIO_OUTPUT | GPIO_OUTPUT_ZERO | nARMED_OUTPUT_IOMUX) + +#define BOARD_INDICATE_ARMED_STATE(on_armed) px4_arch_configgpio((on_armed) ? GPIO_nARMED : GPIO_nARMED_INIT) + /* PWM * * 8 PWM outputs are configured. @@ -549,6 +557,7 @@ } #define PX4_GPIO_INIT_LIST { \ + GPIO_nARMED_INIT, \ PX4_ADC_GPIO, \ GPIO_HW_VER_REV_DRIVE, \ GPIO_FLEXCAN1_TX, \