Permalink
Browse files

eliminated minor glitch caused by enabling a GPIO output before setti…

…ng its value
  • Loading branch information...
mossmann committed Jan 28, 2018
1 parent 0335f1a commit b095c5326ac01adc5de9fa27091b49f6f0392861
Showing with 3 additions and 3 deletions.
  1. +3 −3 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);

0 comments on commit b095c53

Please sign in to comment.