We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4081498 commit 2488153Copy full SHA for 2488153
bricks/_common/mpconfigport.h
@@ -141,8 +141,13 @@ typedef long mp_off_t;
141
142
#include "pbio_os_config.h"
143
144
+#if PBDRV_CONFIG_STACK_EMBEDDED
145
#define MICROPY_BEGIN_ATOMIC_SECTION() pbio_os_hook_disable_irq()
146
#define MICROPY_END_ATOMIC_SECTION(state) pbio_os_hook_enable_irq(state)
147
+#else
148
+#define MICROPY_BEGIN_ATOMIC_SECTION() (0)
149
+#define MICROPY_END_ATOMIC_SECTION(state) (void)(state)
150
+#endif
151
152
#define MICROPY_VM_HOOK_LOOP \
153
do { \
0 commit comments