stm32: add minimal stm32wlex5 / lorae5 target

credit to ofauchon
This commit is contained in:
Kenneth Bell
2021-11-11 10:56:05 +00:00
committed by Ron Evans
parent 339301b709
commit 62d4a6a77f
17 changed files with 582 additions and 6 deletions
+26
View File
@@ -0,0 +1,26 @@
//go:build stm32wle5
// +build stm32wle5
package runtime
import (
"machine"
)
type arrtype = uint32
func init() {
// Currently the clock is not configured, which means
// the MCU runs at default reset clock speed (4Mhz).
// Code to initialize RCC and PLL can go here.
// UART init
machine.Serial.Configure(machine.UARTConfig{})
// Timers init
initTickTimer(&machine.TIM1)
}
func putchar(c byte) {
machine.Serial.WriteByte(c)
}