Skip to content

Commit dd9c227

Browse files
committed
runtime/stm32wlx: change order for init so clock speeds are set before peripheral start
Signed-off-by: deadprogram <[email protected]>
1 parent 1adfdf8 commit dd9c227

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/runtime/runtime_stm32wlx.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ func init() {
2121
// Configure 48Mhz clock
2222
initCLK()
2323

24-
// UART init
25-
machine.InitSerial()
26-
2724
// Timers init
2825
initTickTimer(&machine.TIM1)
2926

27+
// UART init
28+
machine.InitSerial()
3029
}
3130

3231
func initCLK() {

0 commit comments

Comments
 (0)