mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 05:23:40 +00:00
9d35c1197f
Compared to the already supported stm32f103xx "bluepill" board this:
- features 128 KiB flash memory size ("RB" suffix) instead of 64 KiB, see `targets/stm32f103rb.ld`
- has onboard ST-LINK/V2-1 programmer and debugger requiring different OpenOCD configuration file
- uses USART2 connected to ST-LINK/V2-1 debugger as virtual COM port over USB for `putchar()`
- has a user-accessible button besides the reset button
17 lines
193 B
Go
17 lines
193 B
Go
// +build bluepill nucleof103rb stm32f4disco
|
|
|
|
package machine
|
|
|
|
// Peripheral abstraction layer for the stm32.
|
|
|
|
const (
|
|
portA Pin = iota * 16
|
|
portB
|
|
portC
|
|
portD
|
|
portE
|
|
portF
|
|
portG
|
|
portH
|
|
)
|