Skip to content

Commit bf08f62

Browse files
authored
Merge pull request #5683 from dhalbert/restore-bleio-hci-background
restore BLEIO HCI background task
2 parents 637cc23 + 7bcfbe3 commit bf08f62

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

devices/ble_hci/common-hal/_bleio/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ void common_hal_bleio_gc_collect(void) {
107107
}
108108

109109

110-
void bleio_background(void) {
110+
void bleio_hci_background(void) {
111111
bleio_adapter_background(&common_hal_bleio_adapter_obj);
112112
}

devices/ble_hci/common-hal/_bleio/__init__.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "att.h"
3535
#include "hci.h"
3636

37-
void bleio_background(void);
37+
void bleio_hci_background(void);
3838
void bleio_reset(void);
3939

4040
typedef struct {

ports/stm/boards/espruino_pico/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LD_FILE = boards/STM32F401xd_fs.ld
2020
CIRCUITPY_AESIO = 0
2121
CIRCUITPY_AUDIOCORE = 0
2222
CIRCUITPY_AUDIOPWMIO = 0
23+
CIRCUITPY_BLEIO_HCI = 0
2324
CIRCUITPY_BUSDEVICE = 0
2425
CIRCUITPY_BITMAPTOOLS = 0
2526
CIRCUITPY_FRAMEBUFFERIO = 0

ports/stm/boards/pyb_nano_v2/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ LD_FILE = boards/STM32F411_fs.ld
1717
CIRCUITPY_AUDIOCORE = 0
1818
CIRCUITPY_AUDIOPWMIO = 0
1919
CIRCUITPY_BITMAPTOOLS = 0
20+
CIRCUITPY_BLEIO_HCI = 0
2021
CIRCUITPY_BUSDEVICE = 0
2122
CIRCUITPY_GIFIO = 0
2223
CIRCUITPY_KEYPAD = 0

ports/stm/boards/stm32f411ve_discovery/mpconfigboard.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ LD_FILE = boards/STM32F411_fs.ld
1515
# Too big for the flash
1616
CIRCUITPY_AUDIOCORE = 0
1717
CIRCUITPY_AUDIOPWMIO = 0
18-
CIRCUITPY_KEYPAD = 0
19-
CIRCUITPY_MIDI = 0
20-
CIRCUITPY_MSGPACK = 0
2118
CIRCUITPY_BITMAPTOOLS = 0
19+
CIRCUITPY_BLEIO_HCI = 0
20+
CIRCUITPY_MSGPACK = 0
2221
CIRCUITPY_VECTORIO = 0

supervisor/shared/tick.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
#include "supervisor/shared/autoreload.h"
3838
#include "supervisor/shared/stack.h"
3939

40+
#if CIRCUITPY_BLEIO_HCI
41+
#include "common-hal/_bleio/__init__.h"
42+
#endif
43+
4044
#if CIRCUITPY_DISPLAYIO
4145
#include "shared-module/displayio/__init__.h"
4246
#endif
@@ -69,6 +73,10 @@ static void supervisor_background_tasks(void *unused) {
6973

7074
assert_heap_ok();
7175

76+
#if CIRCUITPY_BLEIO_HCI
77+
bleio_hci_background();
78+
#endif
79+
7280
#if CIRCUITPY_DISPLAYIO
7381
displayio_background();
7482
#endif

0 commit comments

Comments
 (0)