diff --git a/boards/holybro/kakuteh7/src/board_config.h b/boards/holybro/kakuteh7/src/board_config.h index 78c2d67ea6..808ba7d947 100644 --- a/boards/holybro/kakuteh7/src/board_config.h +++ b/boards/holybro/kakuteh7/src/board_config.h @@ -133,6 +133,8 @@ #define GPIO_RSSI_IN /* PC5 */ (GPIO_INPUT|GPIO_PULLDOWN|GPIO_PORTC|GPIO_PIN5) +#define GPIO_RF_SWITCH /* PE13 */ (GPIO_OUTPUT|GPIO_PULLDOWN|GPIO_PORTE|GPIO_PIN13) + /* Power switch controls ******************************************************/ #define SDIO_SLOTNO 0 /* Only one slot */ @@ -175,6 +177,7 @@ PX4_ADC_GPIO, \ GPIO_TONE_ALARM_IDLE, \ GPIO_RSSI_IN, \ + GPIO_RF_SWITCH, \ } #define BOARD_ENABLE_CONSOLE_BUFFER diff --git a/boards/holybro/kakuteh7/src/init.c b/boards/holybro/kakuteh7/src/init.c index 0d4667733f..a9fe66548e 100644 --- a/boards/holybro/kakuteh7/src/init.c +++ b/boards/holybro/kakuteh7/src/init.c @@ -160,6 +160,9 @@ stm32_boardinitialize(void) board_control_spi_sensors_power_configgpio(); + /* Turn bluetooth off by default (no mavlink support yet) */ + px4_arch_gpiowrite(GPIO_RF_SWITCH, 0); + /* configure USB interfaces */ stm32_usbinitialize();