mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 21:43:40 +00:00
machine: move PinMode to central location
It is always implemented exactly the same way (as an uint8) so there is no reason to implement it in each target separately. This also makes it easier to add some documentation to it.
This commit is contained in:
committed by
Ron Evans
parent
6f61b83ad5
commit
2f1f8fb075
@@ -10,8 +10,6 @@ var (
|
||||
UART0 = UART{0}
|
||||
)
|
||||
|
||||
type PinMode uint8
|
||||
|
||||
const (
|
||||
PinInput PinMode = iota
|
||||
PinOutput
|
||||
|
||||
Reference in New Issue
Block a user