Skip to content

Commit fac4394

Browse files
committed
pbdrv/bluetooth: Add classic runloop.
The classic runloop is separated from the LE one because little code will be shared between them. For now, it's just a skeleton. pbdrv/bluetooth: Classic init in async mode. This allows use of the async get_version_info functions to allow detecting the bluetooth controller version. (Assuming we can get that working. For now, it's hardcoded.) pbdrv/bluetooth: Fixup LMP subversion det
1 parent 7f639fd commit fac4394

File tree

7 files changed

+501
-2
lines changed

7 files changed

+501
-2
lines changed

bricks/_common/sources.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ PBIO_SRC_C = $(addprefix lib/pbio/,\
127127
drv/bluetooth/bluetooth_btstack_uart_block_ev3.c \
128128
drv/bluetooth/bluetooth_btstack_uart_block_stm32_hal.c \
129129
drv/bluetooth/bluetooth_btstack.c \
130+
drv/bluetooth/bluetooth_btstack_classic.c \
130131
drv/bluetooth/bluetooth_init_cc2560x.c \
131132
drv/bluetooth/bluetooth_simulation.c \
132133
drv/bluetooth/bluetooth_stm32_bluenrg.c \

lib/pbio/drv/bluetooth/bluetooth_btstack.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef _INTERNAL_PBDRV_BLUETOOTH_BTSTACK_H_
77
#define _INTERNAL_PBDRV_BLUETOOTH_BTSTACK_H_
88

9+
#ifdef PBDRV_CONFIG_BLUETOOTH_BTSTACK
10+
911
#include <btstack_chipset.h>
1012
#include <btstack_control.h>
1113
#include <btstack_uart_block.h>
@@ -23,4 +25,6 @@ typedef struct {
2325
// defined in platform.c
2426
extern const pbdrv_bluetooth_btstack_platform_data_t pbdrv_bluetooth_btstack_platform_data;
2527

28+
#endif // PBDRV_CONFIG_BLUETOOTH_BTSTACK
29+
2630
#endif // _INTERNAL_PBDRV_BLUETOOTH_BTSTACK_H_

0 commit comments

Comments
 (0)