rp2040: remove mem allocation in GPIO ISR

This commit is contained in:
Kenneth Bell
2022-10-05 10:12:17 +01:00
committed by kenbell
parent b5ad81c884
commit 2688d9d733
+2 -2
View File
@@ -288,8 +288,8 @@ func gpioHandleInterrupt(intr interrupt.Interrupt) {
base = &ioBank0.proc1IRQctrl
}
statreg := base.intS[gpio>>3]
change := getIntChange(gpio, statreg.Get())
statreg := base.intS[gpio>>3].Get()
change := getIntChange(gpio, statreg)
if change != 0 {
gpio.acknowledgeInterrupt(change)
callback := pinCallbacks[core][gpio]