mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 03:24:00 +00:00
runtime/stm32wlx: change order for init so clock speeds are set before peripheral start
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -21,12 +21,11 @@ func init() {
|
|||||||
// Configure 48Mhz clock
|
// Configure 48Mhz clock
|
||||||
initCLK()
|
initCLK()
|
||||||
|
|
||||||
// UART init
|
|
||||||
machine.InitSerial()
|
|
||||||
|
|
||||||
// Timers init
|
// Timers init
|
||||||
initTickTimer(&machine.TIM1)
|
initTickTimer(&machine.TIM1)
|
||||||
|
|
||||||
|
// UART init
|
||||||
|
machine.InitSerial()
|
||||||
}
|
}
|
||||||
|
|
||||||
func initCLK() {
|
func initCLK() {
|
||||||
|
|||||||
Reference in New Issue
Block a user