eliminated minor glitch caused by enabling a GPIO output before setting its value
This commit is contained in:
@ -912,12 +912,12 @@ void pin_setup(void) {
|
|||||||
gpio_output(&gpio_1v8_enable);
|
gpio_output(&gpio_1v8_enable);
|
||||||
|
|
||||||
#ifdef HACKRF_ONE
|
#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: */
|
/* Safe state: start with VAA turned off: */
|
||||||
disable_rf_power();
|
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_10, SCU_GPIO_PDN | SCU_CONF_FUNCTION0);
|
||||||
scu_pinmux(SCU_PINMUX_GPIO3_11, SCU_GPIO_PDN | SCU_CONF_FUNCTION0);
|
scu_pinmux(SCU_PINMUX_GPIO3_11, SCU_GPIO_PDN | SCU_CONF_FUNCTION0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user