mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 23:13:40 +00:00
machine: add support for the STM32U031 chip
This commit is contained in:
committed by
Ron Evans
parent
a7b30639d8
commit
05029c4fb5
@@ -0,0 +1,14 @@
|
||||
//go:build stm32u0
|
||||
|
||||
package runtime
|
||||
|
||||
import "machine"
|
||||
|
||||
func init() {
|
||||
machine.InitSerial()
|
||||
initTickTimer(&machine.TIM16)
|
||||
}
|
||||
|
||||
func putchar(c byte) {
|
||||
machine.Serial.WriteByte(c)
|
||||
}
|
||||
Reference in New Issue
Block a user