Permalink
Browse files

short pulses when enabling VAA to avoid a big voltage glitch

  • Loading branch information...
mossmann committed Jan 28, 2018
1 parent b095c53 commit 5d6667141e7b5d567d03ff3004f1519834e3e0f5
Showing with 7 additions and 0 deletions.
  1. +7 −0 firmware/common/hackrf_core.c
@@ -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);
}

0 comments on commit 5d66671

Please sign in to comment.