diff --git a/devices/ble_hci/common-hal/_bleio/__init__.c b/devices/ble_hci/common-hal/_bleio/__init__.c index 4a439e8dd2..d8a222ecfe 100644 --- a/devices/ble_hci/common-hal/_bleio/__init__.c +++ b/devices/ble_hci/common-hal/_bleio/__init__.c @@ -107,6 +107,6 @@ void common_hal_bleio_gc_collect(void) { } -void bleio_background(void) { +void bleio_hci_background(void) { bleio_adapter_background(&common_hal_bleio_adapter_obj); } diff --git a/devices/ble_hci/common-hal/_bleio/__init__.h b/devices/ble_hci/common-hal/_bleio/__init__.h index 18bf71834f..f9caf7c5b5 100644 --- a/devices/ble_hci/common-hal/_bleio/__init__.h +++ b/devices/ble_hci/common-hal/_bleio/__init__.h @@ -34,7 +34,7 @@ #include "att.h" #include "hci.h" -void bleio_background(void); +void bleio_hci_background(void); void bleio_reset(void); typedef struct { diff --git a/ports/stm/boards/espruino_pico/mpconfigboard.mk b/ports/stm/boards/espruino_pico/mpconfigboard.mk index a078b4841a..6e4da86dd7 100644 --- a/ports/stm/boards/espruino_pico/mpconfigboard.mk +++ b/ports/stm/boards/espruino_pico/mpconfigboard.mk @@ -20,6 +20,7 @@ LD_FILE = boards/STM32F401xd_fs.ld CIRCUITPY_AESIO = 0 CIRCUITPY_AUDIOCORE = 0 CIRCUITPY_AUDIOPWMIO = 0 +CIRCUITPY_BLEIO_HCI = 0 CIRCUITPY_BUSDEVICE = 0 CIRCUITPY_BITMAPTOOLS = 0 CIRCUITPY_FRAMEBUFFERIO = 0 diff --git a/ports/stm/boards/pyb_nano_v2/mpconfigboard.mk b/ports/stm/boards/pyb_nano_v2/mpconfigboard.mk index 29bfd62620..3ba45e0c5b 100644 --- a/ports/stm/boards/pyb_nano_v2/mpconfigboard.mk +++ b/ports/stm/boards/pyb_nano_v2/mpconfigboard.mk @@ -17,6 +17,7 @@ LD_FILE = boards/STM32F411_fs.ld CIRCUITPY_AUDIOCORE = 0 CIRCUITPY_AUDIOPWMIO = 0 CIRCUITPY_BITMAPTOOLS = 0 +CIRCUITPY_BLEIO_HCI = 0 CIRCUITPY_BUSDEVICE = 0 CIRCUITPY_GIFIO = 0 CIRCUITPY_KEYPAD = 0 diff --git a/ports/stm/boards/stm32f411ve_discovery/mpconfigboard.mk b/ports/stm/boards/stm32f411ve_discovery/mpconfigboard.mk index 61e372b2c3..0929841ea5 100644 --- a/ports/stm/boards/stm32f411ve_discovery/mpconfigboard.mk +++ b/ports/stm/boards/stm32f411ve_discovery/mpconfigboard.mk @@ -15,8 +15,7 @@ LD_FILE = boards/STM32F411_fs.ld # Too big for the flash CIRCUITPY_AUDIOCORE = 0 CIRCUITPY_AUDIOPWMIO = 0 -CIRCUITPY_KEYPAD = 0 -CIRCUITPY_MIDI = 0 -CIRCUITPY_MSGPACK = 0 CIRCUITPY_BITMAPTOOLS = 0 +CIRCUITPY_BLEIO_HCI = 0 +CIRCUITPY_MSGPACK = 0 CIRCUITPY_VECTORIO = 0 diff --git a/supervisor/shared/tick.c b/supervisor/shared/tick.c index 40c1ef11e3..94b9d4d15e 100644 --- a/supervisor/shared/tick.c +++ b/supervisor/shared/tick.c @@ -37,6 +37,10 @@ #include "supervisor/shared/autoreload.h" #include "supervisor/shared/stack.h" +#if CIRCUITPY_BLEIO_HCI +#include "common-hal/_bleio/__init__.h" +#endif + #if CIRCUITPY_DISPLAYIO #include "shared-module/displayio/__init__.h" #endif @@ -69,6 +73,10 @@ static void supervisor_background_tasks(void *unused) { assert_heap_ok(); + #if CIRCUITPY_BLEIO_HCI + bleio_hci_background(); + #endif + #if CIRCUITPY_DISPLAYIO displayio_background(); #endif