machine: reorder pin definitions to improve pin list on tinygo.org

This commit is contained in:
Ayke van Laethem
2022-06-29 15:30:41 +02:00
committed by Ron Evans
parent 411333327e
commit 0a93347e1c
25 changed files with 174 additions and 142 deletions
+12 -12
View File
@@ -8,18 +8,6 @@ import (
"runtime/interrupt"
)
const (
LED = LED_BUILTIN
LED_BUILTIN = LED_GREEN
LED_GREEN = PB3
)
const (
// This board does not have a user button, so
// use first GPIO pin by default
BUTTON = PA0
)
const (
// Arduino Pins
A0 = PA0 // ADC_IN0
@@ -45,6 +33,18 @@ const (
D13 = PB3 // SPI1_SCK
)
const (
LED = LED_BUILTIN
LED_BUILTIN = LED_GREEN
LED_GREEN = PB3
)
const (
// This board does not have a user button, so
// use first GPIO pin by default
BUTTON = PA0
)
const (
// UART pins
// PA2 and PA15 are connected to the ST-Link Virtual Com Port (VCP)