summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index ebab885091..7bf6f6a3af 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -454,7 +454,9 @@ int main(void) {
#endif
// basic sub-system init
+ #if MICROPY_PY_THREAD
pyb_thread_init(&pyb_thread_main);
+ #endif
pendsv_init();
led_init();
#if MICROPY_HW_HAS_SWITCH