summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/stm32/gccollect.c2
-rw-r--r--ports/stm32/mpthreadport.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/ports/stm32/gccollect.c b/ports/stm32/gccollect.c
index d92fc5cef..5c1bf1e06 100644
--- a/ports/stm32/gccollect.c
+++ b/ports/stm32/gccollect.c
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <stdint.h>
-#include "py/obj.h"
+#include "py/mpstate.h"
#include "py/gc.h"
#include "py/mpthread.h"
#include "lib/utils/gchelper.h"
diff --git a/ports/stm32/mpthreadport.c b/ports/stm32/mpthreadport.c
index 11653b24c..7b3b92934 100644
--- a/ports/stm32/mpthreadport.c
+++ b/ports/stm32/mpthreadport.c
@@ -26,6 +26,7 @@
#include <stdio.h>
+#include "py/mpstate.h"
#include "py/gc.h"
#include "py/mpthread.h"
#include "gccollect.h"