summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index 42aaff4d0a..bb2a1d88a1 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -78,7 +78,8 @@ void __fatal_error(const char *msg) {
led_toggle(((i++) & 3) + 1);
for (volatile uint delay = 0; delay < 10000000; delay++) {
}
- if (i >= 8) {
+ if (i >= 16) {
+ // to conserve power
__WFI();
}
}
@@ -457,15 +458,12 @@ soft_reset:
}
#endif
+ timer_init0();
+
#if MICROPY_HW_ENABLE_RNG
rng_init0();
#endif
-#if MICROPY_HW_ENABLE_TIMER
- // timer
- //timer_init();
-#endif
-
i2c_init0();
spi_init0();