Skip to content

Commit 03d5c04

Browse files
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).
1 parent e86bc10 commit 03d5c04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/codal_port/modspeech.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <stdio.h>
2929
#include <string.h>
3030

31+
#include "py/mphal.h"
3132
#include "py/obj.h"
3233
#include "py/objtuple.h"
3334
#include "py/objstr.h"

0 commit comments

Comments
 (0)