machine: split board definitions in separate files

This commit is contained in:
Ayke van Laethem
2018-09-22 15:41:52 +02:00
parent 2c21925f4c
commit 8f5bd81bf5
6 changed files with 45 additions and 35 deletions
-4
View File
@@ -25,10 +25,6 @@ const (
portG
)
const (
LED = portC + 13
)
func (p GPIO) getPort() *stm32.GPIO_Type {
switch p.Pin / 16 {
case 0: