From 03d5c04730038f80155c3dfbe8128e4f8e4587b2 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Thu, 21 Mar 2024 15:53:58 +0000 Subject: [PATCH] codal_port/modspeech: include mphal.h for the simulator MICROPY_BEGIN_ATOMIC_SECTION/MICROPY_END_ATOMIC_SECTION are only defined in modspeech because of mpconfigport.h (indirectly). Include mphal.h so that the defaults are defined if the port does not define them (as in the sim case). --- src/codal_port/modspeech.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codal_port/modspeech.c b/src/codal_port/modspeech.c index be0f6fd..32305b5 100644 --- a/src/codal_port/modspeech.c +++ b/src/codal_port/modspeech.c @@ -28,6 +28,7 @@ #include #include +#include "py/mphal.h" #include "py/obj.h" #include "py/objtuple.h" #include "py/objstr.h"