machine: refactor pins to be of Pin type

This commit is contained in:
Ayke van Laethem
2019-04-28 18:49:17 +02:00
committed by Ron Evans
parent 421ef04efb
commit 94b8214529
38 changed files with 590 additions and 605 deletions
+2 -2
View File
@@ -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