aboutsummaryrefslogtreecommitdiff
path: root/stmhal/modmachine.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/modmachine.c')
-rw-r--r--stmhal/modmachine.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c
index 4a3fe1ec9..16c50079d 100644
--- a/stmhal/modmachine.c
+++ b/stmhal/modmachine.c
@@ -41,6 +41,7 @@
#include "extmod/vfs_fat.h"
#include "gccollect.h"
#include "irq.h"
+#include "pybthread.h"
#include "rng.h"
#include "storage.h"
#include "pin.h"
@@ -159,6 +160,10 @@ STATIC mp_obj_t machine_info(mp_uint_t n_args, const mp_obj_t *args) {
}
}
+ #if MICROPY_PY_THREAD
+ pyb_thread_dump();
+ #endif
+
if (n_args == 1) {
// arg given means dump gc allocation table
gc_dump_alloc_table();