Skip to content

Commit

Permalink
short pulses when enabling VAA to avoid a big voltage glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmann committed Jan 28, 2018
1 parent b095c53 commit 5d66671
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions firmware/common/hackrf_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5d66671

Please sign in to comment.