mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
rp2040: remove mem allocation in GPIO ISR
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user