mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 05:23:40 +00:00
22 lines
273 B
Go
22 lines
273 B
Go
//go:build stm32l0x2
|
|
// +build stm32l0x2
|
|
|
|
package runtime
|
|
|
|
import (
|
|
"machine"
|
|
"tinygo.org/x/device/stm32"
|
|
)
|
|
|
|
const (
|
|
FlashLatency = stm32.Flash_ACR_LATENCY_WS1
|
|
)
|
|
|
|
func init() {
|
|
initCLK()
|
|
|
|
machine.Serial.Configure(machine.UARTConfig{})
|
|
|
|
initTickTimer(&machine.TIM3)
|
|
}
|