4b2b05718a
This prevents issues with concurrent access to the ringbuf. MICROPY_BEGIN_ATOMIC_SECTION is only atomic to the same core. We could address this with a mutex, but it's also not safe to call mp_sched_schedule across cores.
15 lines
360 B
Plaintext
15 lines
360 B
Plaintext
# Note this requires building with IDF 4.x
|
|
CONFIG_BT_ENABLED=y
|
|
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
|
|
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=
|
|
CONFIG_BTDM_CTRL_MODE_BTDM=
|
|
|
|
CONFIG_BT_NIMBLE_ENABLED=y
|
|
|
|
CONFIG_BT_NIMBLE_MAX_CONNECTIONS=4
|
|
|
|
# Pin to the same core as MP.
|
|
CONFIG_BT_NIMBLE_PINNED_TO_CORE_0=n
|
|
CONFIG_BT_NIMBLE_PINNED_TO_CORE_1=y
|
|
CONFIG_BT_NIMBLE_PINNED_TO_CORE=1
|