2016-01-06 14:32:27 +00:00
|
|
|
#
|
|
|
|
# BTstack port for WICED framework
|
|
|
|
#
|
|
|
|
|
|
|
|
ifndef BT_CHIP
|
|
|
|
$(error BT_CHIP not set - WICED BTstack port only supported with Broadcom Bluetooth chipset)
|
|
|
|
endif
|
|
|
|
|
|
|
|
NAME := BTstack_for_BCM$(BT_CHIP)$(BT_CHIP_REVISION)
|
|
|
|
|
2017-04-13 14:24:06 +00:00
|
|
|
GLOBAL_INCLUDES += \
|
|
|
|
. \
|
|
|
|
../../src \
|
|
|
|
../../platform/embedded \
|
2017-05-02 17:06:57 +00:00
|
|
|
../../platform/wiced \
|
2017-04-13 14:24:06 +00:00
|
|
|
../../chipset/bcm \
|
|
|
|
../../../../
|
2016-01-06 14:32:27 +00:00
|
|
|
|
2017-04-25 18:48:09 +00:00
|
|
|
# micro-ecc of WICED tree used for SECP256R1 in LE Secure Connections
|
|
|
|
$(NAME)_COMPONENTS += crypto/micro-ecc
|
|
|
|
|
2017-11-06 14:26:38 +00:00
|
|
|
# additional CFLAGS
|
|
|
|
$(NAME)_CFLAGS += $(BTSTACK_CFLAGS)
|
|
|
|
|
2016-01-06 14:32:27 +00:00
|
|
|
# core BTstack sources
|
|
|
|
$(NAME)_SOURCES += \
|
2016-09-29 14:06:01 +00:00
|
|
|
../../src/ad_parser.c \
|
2016-07-06 12:08:21 +00:00
|
|
|
../../src/ble/att_db.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/ble/att_dispatch.c \
|
|
|
|
../../src/ble/att_server.c \
|
2017-02-02 13:50:30 +00:00
|
|
|
../../src/ble/gatt_client.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/ble/le_device_db_memory.c \
|
2017-02-01 14:48:18 +00:00
|
|
|
../../src/ble/gatt-service/battery_service_server.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/ble/sm.c \
|
2017-02-01 14:48:18 +00:00
|
|
|
../../src/classic/hfp.c \
|
|
|
|
../../src/classic/hfp_ag.c \
|
|
|
|
../../src/classic/hfp_hf.c \
|
|
|
|
../../src/classic/hsp_hs.c \
|
2016-01-17 21:19:28 +00:00
|
|
|
../../src/classic/hsp_hs.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/classic/rfcomm.c \
|
2016-07-06 12:08:21 +00:00
|
|
|
../../src/classic/sdp_server.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/classic/sdp_client.c \
|
2016-07-06 12:08:21 +00:00
|
|
|
../../src/classic/sdp_client_rfcomm.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/classic/sdp_util.c \
|
2016-07-01 14:13:05 +00:00
|
|
|
../../src/classic/spp_server.c \
|
2016-01-22 12:57:45 +00:00
|
|
|
../../src/btstack_linked_list.c \
|
|
|
|
../../src/btstack_memory.c \
|
|
|
|
../../src/btstack_memory_pool.c \
|
|
|
|
../../src/btstack_run_loop.c \
|
2017-11-09 12:34:08 +00:00
|
|
|
../../src/btstack_tlv.c \
|
2016-01-22 12:57:45 +00:00
|
|
|
../../src/btstack_util.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/hci.c \
|
2016-07-06 12:08:21 +00:00
|
|
|
../../src/hci_cmd.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/hci_dump.c \
|
2017-04-26 09:51:31 +00:00
|
|
|
../../src/hci_transport_h4.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/l2cap.c \
|
|
|
|
../../src/l2cap_signaling.c \
|
2017-02-01 14:48:18 +00:00
|
|
|
../../example/sco_demo_util.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
|
|
|
|
# WICED port incl. support for Broadcom chipset
|
|
|
|
$(NAME)_SOURCES += \
|
2017-05-02 17:06:57 +00:00
|
|
|
main.c \
|
|
|
|
../../platform/wiced/btstack_link_key_db_wiced_dct.c \
|
|
|
|
../../platform/wiced/btstack_run_loop_wiced.c \
|
2017-11-07 21:26:01 +00:00
|
|
|
../../platform/wiced/btstack_stdin_wiced.c \
|
2017-05-02 17:06:57 +00:00
|
|
|
../../platform/wiced/btstack_uart_block_wiced.c \
|
2017-05-03 09:15:22 +00:00
|
|
|
../../platform/wiced/le_device_db_wiced_dct.c \
|
2017-05-02 17:06:57 +00:00
|
|
|
../../chipset/bcm/btstack_chipset_bcm.c \
|
2016-07-04 09:42:13 +00:00
|
|
|
|
|
|
|
ifeq ($(BT_CHIP_XTAL_FREQUENCY),)
|
2017-11-06 11:33:32 +00:00
|
|
|
$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_FIRMWARE_FILE)
|
2016-07-04 09:42:13 +00:00
|
|
|
else
|
2017-11-06 11:33:32 +00:00
|
|
|
$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_CHIP_XTAL_FREQUENCY)/$(BT_FIRMWARE_FILE)
|
2016-07-04 09:42:13 +00:00
|
|
|
endif
|