diff options
author | Damien George <damien.p.george@gmail.com> | 2019-03-08 22:29:54 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-03-08 22:29:54 +1100 |
commit | e4ac104b7f2980114c6d1b0d8ff5917777cf8f24 (patch) | |
tree | f2026406891fd64ebdd52f36e5fa24ba92edb56f | |
parent | 1e23a29c8a9c8d0e6288efd20759778608cb1da3 (diff) |
stm32: Allow to build with threading with the GIL disabled.
-rw-r--r-- | ports/stm32/gccollect.c | 2 | ||||
-rw-r--r-- | ports/stm32/mpthreadport.c | 1 |
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" |