mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 16:33:40 +00:00
machine: refactor pins to be of Pin type
This commit is contained in:
committed by
Ron Evans
parent
421ef04efb
commit
94b8214529
@@ -4,10 +4,10 @@ package machine
|
||||
|
||||
// Peripheral abstraction layer for the stm32.
|
||||
|
||||
type GPIOMode uint8
|
||||
type PinMode uint8
|
||||
|
||||
const (
|
||||
portA = iota * 16
|
||||
portA Pin = iota * 16
|
||||
portB
|
||||
portC
|
||||
portD
|
||||
|
||||
Reference in New Issue
Block a user