stm32: support pin input interrupts

This commit is contained in:
Kenneth Bell
2021-05-31 17:45:49 -07:00
committed by Ron Evans
parent c017ed2242
commit 5f9e339cf3
16 changed files with 527 additions and 0 deletions
+7
View File
@@ -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!