Set VAA_ENABLE# state before setting GPIO to output.

...to avoid glitching the output voltage.
This commit is contained in:
Jared Boone
2018-12-27 20:29:25 -08:00
parent 5535cf059e
commit 610e6b58cc

View File

@ -813,12 +813,12 @@ void pin_setup(void) {
#endif
#ifdef RAD1O
/* Configure RF power supply (VAA) switch control signal as output */
gpio_output(&gpio_vaa_enable);
/* Safe state: start with VAA turned off: */
disable_rf_power();
/* Configure RF power supply (VAA) switch control signal as output */
gpio_output(&gpio_vaa_enable);
/* Disable unused clock outputs. They generate noise. */
scu_pinmux(CLK0, SCU_CLK_IN | SCU_CONF_FUNCTION7);
scu_pinmux(CLK2, SCU_CLK_IN | SCU_CONF_FUNCTION7);