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