Set 1V8 enable state before configuring pin function or to output mode

...to avoid glitching 1V8 enable voltage.
This commit is contained in:
Jared Boone
2018-12-27 20:31:31 -08:00
parent 610e6b58cc
commit bfd3b1b768

View File

@ -781,8 +781,6 @@ void pin_setup(void) {
scu_pinmux(SCU_PINMUX_LED4, SCU_GPIO_NOPULL | SCU_CONF_FUNCTION4); scu_pinmux(SCU_PINMUX_LED4, SCU_GPIO_NOPULL | SCU_CONF_FUNCTION4);
#endif #endif
scu_pinmux(SCU_PINMUX_EN1V8, SCU_GPIO_NOPULL);
/* Configure USB indicators */ /* Configure USB indicators */
#ifdef JAWBREAKER #ifdef JAWBREAKER
scu_pinmux(SCU_PINMUX_USB_LED0, SCU_CONF_FUNCTION3); scu_pinmux(SCU_PINMUX_USB_LED0, SCU_CONF_FUNCTION3);
@ -796,7 +794,9 @@ void pin_setup(void) {
gpio_output(&gpio_led[3]); gpio_output(&gpio_led[3]);
#endif #endif
disable_1v8_power();
gpio_output(&gpio_1v8_enable); gpio_output(&gpio_1v8_enable);
scu_pinmux(SCU_PINMUX_EN1V8, SCU_GPIO_NOPULL | SCU_CONF_FUNCTION0);
#ifdef HACKRF_ONE #ifdef HACKRF_ONE
/* Safe state: start with VAA turned off: */ /* Safe state: start with VAA turned off: */