aboutsummaryrefslogtreecommitdiff
path: root/ports/unix
diff options
context:
space:
mode:
authorJim Mussared2020-10-28 13:06:45 +1100
committerDamien George2020-11-13 17:19:05 +1100
commit81e92d3d6e1a605a6115821ac24dcbc2546ba0f9 (patch)
treef640bf328a0364808b1946130e802621a554c239 /ports/unix
parent6d9fdff8d07f3fa2a05eddb05e1a55754ae3542f (diff)
extmod/modbluetooth: Re-instate optional no-ringbuf modbluetooth.
This requires that the event handlers are called from non-interrupt context (i.e. the MicroPython scheduler). This will allow the BLE stack (e.g. NimBLE) to run from the scheduler rather than an IRQ like PENDSV, and therefore be able to invoke Python callbacks directly/synchronously. This allows writing Python BLE handlers for events that require immediate response such as _IRQ_READ_REQUEST (which was previous a hard IRQ) and future events relating to pairing/bonding. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'ports/unix')
-rw-r--r--ports/unix/Makefile2
1 files changed, 0 insertions, 2 deletions
diff --git a/ports/unix/Makefile b/ports/unix/Makefile
index 048ef97f7..f72c05f1a 100644
--- a/ports/unix/Makefile
+++ b/ports/unix/Makefile
@@ -156,8 +156,6 @@ endif
CFLAGS_MOD += -DMICROPY_PY_BLUETOOTH=1
CFLAGS_MOD += -DMICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE=1
-# Runs in a thread, cannot make calls into the VM.
-CFLAGS_MOD += -DMICROPY_PY_BLUETOOTH_GATTS_ON_READ_CALLBACK=0
ifeq ($(MICROPY_BLUETOOTH_BTSTACK),1)