From b095c5326ac01adc5de9fa27091b49f6f0392861 Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Sun, 28 Jan 2018 16:16:35 -0700 Subject: [PATCH] eliminated minor glitch caused by enabling a GPIO output before setting its value --- firmware/common/hackrf_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/common/hackrf_core.c b/firmware/common/hackrf_core.c index 545b57e5d..cb84daaca 100644 --- a/firmware/common/hackrf_core.c +++ b/firmware/common/hackrf_core.c @@ -912,12 +912,12 @@ void pin_setup(void) { gpio_output(&gpio_1v8_enable); #ifdef HACKRF_ONE - /* Configure RF power supply (VAA) switch control signal as output */ - gpio_output(&gpio_vaa_disable); - /* Safe state: start with VAA turned off: */ disable_rf_power(); + /* Configure RF power supply (VAA) switch control signal as output */ + gpio_output(&gpio_vaa_disable); + scu_pinmux(SCU_PINMUX_GPIO3_10, SCU_GPIO_PDN | SCU_CONF_FUNCTION0); scu_pinmux(SCU_PINMUX_GPIO3_11, SCU_GPIO_PDN | SCU_CONF_FUNCTION0);