mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 05:53:39 +00:00
stm32: support pin input interrupts
This commit is contained in:
@@ -31,6 +31,13 @@ const (
|
||||
// Also, the stm32f1xx series handles things differently from the stm32f0/2/3/4
|
||||
|
||||
// ---------- General pin operations ----------
|
||||
type PinChange uint8
|
||||
|
||||
const (
|
||||
PinRising PinChange = 1 << iota
|
||||
PinFalling
|
||||
PinToggle = PinRising | PinFalling
|
||||
)
|
||||
|
||||
// Set the pin to high or low.
|
||||
// Warning: only use this on an output pin!
|
||||
|
||||
Reference in New Issue
Block a user