diff options
author | BCG <[email protected]> | 2024-01-28 12:08:11 -0500 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-01-29 12:38:06 +0100 |
commit | 0ea5cfc8fef81c8b8bed3381fdbd18f986bc9b65 (patch) | |
tree | 40b2e9800453adbc543186930b3b0406cf8fc435 /src/machine | |
parent | 70f1a5429af40138c775e7e923abcc1da6807f99 (diff) | |
download | tinygo-0ea5cfc8fef81c8b8bed3381fdbd18f986bc9b65.tar.gz tinygo-0ea5cfc8fef81c8b8bed3381fdbd18f986bc9b65.zip |
rp2040: add definition for machine.PinToggle
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machine_rp2040_gpio.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/machine/machine_rp2040_gpio.go b/src/machine/machine_rp2040_gpio.go index 94715d963..86cb09eb9 100644 --- a/src/machine/machine_rp2040_gpio.go +++ b/src/machine/machine_rp2040_gpio.go @@ -241,6 +241,8 @@ const ( PinFalling PinChange = 4 << iota // Edge rising PinRising + + PinToggle = PinFalling | PinRising ) // Callbacks to be called for pins configured with SetInterrupt. |