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
@@ -6,8 +6,8 @@ import "errors"
type UARTConfig struct {
BaudRate uint32
TX uint8
RX uint8
TX Pin
RX Pin
}
// To implement the UART interface for a board, you must declare a concrete type as follows: