Skip to content

Commit

Permalink
eliminated minor glitch caused by enabling a GPIO output before setti…
Browse files Browse the repository at this point in the history
…ng its value
  • Loading branch information
mossmann committed Jan 28, 2018
1 parent 0335f1a commit b095c53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions firmware/common/hackrf_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b095c53

Please sign in to comment.