diff options
| author | Jim Mussared | 2020-08-14 15:43:09 +1000 |
|---|---|---|
| committer | Damien George | 2020-09-08 11:41:31 +1000 |
| commit | ed14435a8e6199b845c3404a9052f9ff4213292c (patch) | |
| tree | c7fc4c10aeb002bbe9557e212c62bb75a735fee8 /extmod/btstack/btstack.mk | |
| parent | e46aac24bacdafcb5323fbfc702a3bd597f66072 (diff) | |
extmod/modbluetooth: Refactor stack/hci/driver/port bindings.
Previously the interaction between the different layers of the Bluetooth
stack was different on each port and each stack. This commit defines
common interfaces between them and implements them for cyw43, btstack,
nimble, stm32, unix.
Diffstat (limited to 'extmod/btstack/btstack.mk')
| -rw-r--r-- | extmod/btstack/btstack.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extmod/btstack/btstack.mk b/extmod/btstack/btstack.mk index dd96e6337..3084601b8 100644 --- a/extmod/btstack/btstack.mk +++ b/extmod/btstack/btstack.mk @@ -38,6 +38,17 @@ CFLAGS += $(shell pkg-config libusb-1.0 --cflags) LDFLAGS += $(shell pkg-config libusb-1.0 --libs) endif +ifeq ($(MICROPY_BLUETOOTH_BTSTACK_H4),1) +SRC_BTSTACK += \ + lib/btstack/src/hci_transport_h4.c \ + lib/btstack/chipset/zephyr/btstack_chipset_zephyr.c + +EXTMOD_SRC_C += \ + extmod/btstack/btstack_hci_uart.c \ + +CFLAGS_MOD += -DMICROPY_BLUETOOTH_BTSTACK_H4=1 +endif + ifeq ($(MICROPY_BLUETOOTH_BTSTACK_ENABLE_CLASSIC),1) include $(BTSTACK_DIR)/src/classic/Makefile.inc SRC_BTSTACK += \ |
