Skip to content

Commit

Permalink
F4-specific fix for EXTI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
androda committed Apr 7, 2022
1 parent ffcc923 commit 251b2a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion F4_BlueSCSI/F4_BlueSCSI.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <Arduino.h> // For Platform.IO
#include <SdFat.h>
#include <setjmp.h>
#include <libmaple/exti.h>

#ifdef USE_STM32_DMA
#warning "warning USE_STM32_DMA"
Expand Down Expand Up @@ -716,7 +717,7 @@ void onBusReset(void)
if (m_resetJmp) {
m_resetJmp = false;
// Jumping out of the interrupt handler, so need to clear the interupt source.
uint8 exti = PIN_MAP[RST].gpio_bit;
uint8 exti = 15; // PIN_MAP[RST].gpio_bit; the gpio_bit is just the number in the pin bank
EXTI_BASE->PR = (1U << exti);
longjmpFromInterrupt(m_resetJmpBuf, 1);
} else {
Expand Down

0 comments on commit 251b2a8

Please sign in to comment.