mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +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
|
||||
initCLK()
|
||||
|
||||
// UART init
|
||||
machine.InitSerial()
|
||||
|
||||
// Timers init
|
||||
initTickTimer(&machine.TIM1)
|
||||
|
||||
// UART init
|
||||
machine.InitSerial()
|
||||
}
|
||||
|
||||
func initCLK() {
|
||||
|
||||
Reference in New Issue
Block a user