Skip to content

Commit b095c53

Browse files
committed
eliminated minor glitch caused by enabling a GPIO output before setting its value
1 parent 0335f1a commit b095c53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

firmware/common/hackrf_core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,12 +912,12 @@ void pin_setup(void) {
912912
gpio_output(&gpio_1v8_enable);
913913

914914
#ifdef HACKRF_ONE
915-
/* Configure RF power supply (VAA) switch control signal as output */
916-
gpio_output(&gpio_vaa_disable);
917-
918915
/* Safe state: start with VAA turned off: */
919916
disable_rf_power();
920917

918+
/* Configure RF power supply (VAA) switch control signal as output */
919+
gpio_output(&gpio_vaa_disable);
920+
921921
scu_pinmux(SCU_PINMUX_GPIO3_10, SCU_GPIO_PDN | SCU_CONF_FUNCTION0);
922922
scu_pinmux(SCU_PINMUX_GPIO3_11, SCU_GPIO_PDN | SCU_CONF_FUNCTION0);
923923

0 commit comments

Comments
 (0)