Skip to content

Commit

Permalink
Ignore FPGA_INT
Browse files Browse the repository at this point in the history
Spurious interrupts during FPGA configuration on Cynthion have convinced
us to develop a more sophisticated method for the FPGA to communicate
its needs to the microcontroller.
  • Loading branch information
mossmann committed Sep 27, 2023
1 parent 9e1f3ad commit 1338384
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions firmware/src/boards/luna_d11/usb_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ void switch_control_task(void)
gpio_set_pin_pull_mode(PROGRAM_BUTTON, GPIO_PULL_OFF);
#endif
gpio_set_pin_direction(PROGRAM_BUTTON, GPIO_DIRECTION_IN);
gpio_set_pin_direction(FPGA_INT, GPIO_DIRECTION_IN);
if ((gpio_get_pin_level(PROGRAM_BUTTON) == false) || (gpio_get_pin_level(FPGA_INT) == true)) {
if (gpio_get_pin_level(PROGRAM_BUTTON) == false) {
take_over_usb();
}
}

0 comments on commit 1338384

Please sign in to comment.