short pulses when enabling VAA to avoid a big voltage glitch

This commit is contained in:
Michael Ossmann
2018-01-28 16:24:48 -07:00
parent b095c5326a
commit 5d6667141e

View File

@ -952,6 +952,13 @@ void disable_1v8_power(void) {
#ifdef HACKRF_ONE
void enable_rf_power(void) {
uint32_t i;
/* many short pulses to avoid one big voltage glitch */
for (i = 0; i < 1000; i++) {
gpio_clear(&gpio_vaa_disable);
gpio_set(&gpio_vaa_disable);
}
gpio_clear(&gpio_vaa_disable);
}