aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBCG <[email protected]>2024-01-28 12:08:11 -0500
committerRon Evans <[email protected]>2024-01-29 12:38:06 +0100
commit0ea5cfc8fef81c8b8bed3381fdbd18f986bc9b65 (patch)
tree40b2e9800453adbc543186930b3b0406cf8fc435
parent70f1a5429af40138c775e7e923abcc1da6807f99 (diff)
downloadtinygo-0ea5cfc8fef81c8b8bed3381fdbd18f986bc9b65.tar.gz
tinygo-0ea5cfc8fef81c8b8bed3381fdbd18f986bc9b65.zip
rp2040: add definition for machine.PinToggle
-rw-r--r--src/machine/machine_rp2040_gpio.go2
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.