diff options
author | Ayke van Laethem <[email protected]> | 2019-04-28 18:49:17 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-05-26 20:48:50 +0200 |
commit | 94b8214529f1cebad2cc45b5c1820695a7dd8201 (patch) | |
tree | 62ea7f3171ba0a3f106998e2ddc8ed1c7e799f59 /src/machine/machine_stm32.go | |
parent | 421ef04efb87889d73d5b404202a655f41d2e1e4 (diff) | |
download | tinygo-94b8214529f1cebad2cc45b5c1820695a7dd8201.tar.gz tinygo-94b8214529f1cebad2cc45b5c1820695a7dd8201.zip |
machine: refactor pins to be of Pin type
Diffstat (limited to 'src/machine/machine_stm32.go')
-rw-r--r-- | src/machine/machine_stm32.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine_stm32.go b/src/machine/machine_stm32.go index 32aa0adc9..4e28d03d8 100644 --- a/src/machine/machine_stm32.go +++ b/src/machine/machine_stm32.go @@ -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 |