We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f886a4c commit 6575c2cCopy full SHA for 6575c2c
ports/rp2/mpconfigport.h
@@ -236,6 +236,12 @@ extern void mp_thread_end_atomic_section(uint32_t);
236
#define MICROPY_PY_LWIP_REENTER lwip_lock_acquire();
237
#define MICROPY_PY_LWIP_EXIT lwip_lock_release();
238
239
+#if MICROPY_PY_BLUETOOTH
240
+// Bluetooth code only runs in the scheduler, no locking/mutex required.
241
+#define MICROPY_PY_BLUETOOTH_ENTER uint32_t atomic_state = 0;
242
+#define MICROPY_PY_BLUETOOTH_EXIT (void)atomic_state;
243
+#endif
244
+
245
#if MICROPY_HW_ENABLE_USBDEV
246
#define MICROPY_HW_USBDEV_TASK_HOOK extern void usbd_task(void); usbd_task();
247
#define MICROPY_VM_HOOK_COUNT (10)
0 commit comments