From eb86730dca085841522ec1178e72aa65ae4fc341 Mon Sep 17 00:00:00 2001 From: David Sidrane <david_s5@nscdg.com> Date: Mon, 13 Mar 2017 08:19:47 -1000 Subject: [PATCH] Removed all SPEKTUM Power and Bind Control FMUv4 PRO HW does not have a controlable V3.3 on the connector it therefore can not support the SPEKTUM binding. This PR removes the Power switch controls or binding control interfaces from the board config --- .../boards/px4fmu-v4pro/board_config.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/drivers/boards/px4fmu-v4pro/board_config.h b/src/drivers/boards/px4fmu-v4pro/board_config.h index 11b1372111..7168837e6c 100644 --- a/src/drivers/boards/px4fmu-v4pro/board_config.h +++ b/src/drivers/boards/px4fmu-v4pro/board_config.h @@ -306,24 +306,11 @@ __BEGIN_DECLS #define GPIO_8266_PD (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTE|GPIO_PIN5) #define GPIO_8266_RST (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTE|GPIO_PIN6) -/* Power switch controls ******************************************************/ - -//#define SPEKTRUM_POWER(_on_true) px4_arch_gpiowrite(GPIO_SPEKTRUM_PWR_EN, (!_on_true)) - -/* FMUv4-pro has RC_IN to the FMU and to the PX4IO: - * - * GPIO PPM_IN to the FMU on PB0 T3C 3 - * SPEKTRUM_RX (it's TX or RX in Bind) on UART3 on the PX4IO - * Inversion is possible via the 74LVC2G86 controlled by the FMU - * The FMU can drive GPIO PPM_IN as an output +/* No Power switch controls or binding control ********************************************* + * V4 Pro does not have control to bind SPEKTRUM - there is only 5V VCC on + * the connector interface and Spektrum requires VDD 3v3 to be controllable */ -#define GPIO_PPM_IN_AS_OUT (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN0) -#define SPEKTRUM_RX_AS_GPIO_OUTPUT() px4_arch_configgpio(GPIO_PPM_IN_AS_OUT) -#define SPEKTRUM_RX_AS_UART() px4_arch_configgpio(GPIO_USART1_RX) -#define SPEKTRUM_OUT(_one_true) px4_arch_gpiowrite(GPIO_PPM_IN_AS_OUT, (_one_true)) - - #define BOARD_NAME "PX4FMU_V4PRO" /* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction) -- GitLab