mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 07:53:40 +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
|
base = &ioBank0.proc1IRQctrl
|
||||||
}
|
}
|
||||||
|
|
||||||
statreg := base.intS[gpio>>3]
|
statreg := base.intS[gpio>>3].Get()
|
||||||
change := getIntChange(gpio, statreg.Get())
|
change := getIntChange(gpio, statreg)
|
||||||
if change != 0 {
|
if change != 0 {
|
||||||
gpio.acknowledgeInterrupt(change)
|
gpio.acknowledgeInterrupt(change)
|
||||||
callback := pinCallbacks[core][gpio]
|
callback := pinCallbacks[core][gpio]
|
||||||
|
|||||||
Reference in New Issue
Block a user