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)
|
|
|
|
|
|
|
|
GLOBAL_INCLUDES += . ../../src ../../platform/embedded ../../chipset/bcm ../../../../
|
|
|
|
|
|
|
|
# core BTstack sources
|
|
|
|
$(NAME)_SOURCES += \
|
2016-07-06 12:08:21 +00:00
|
|
|
../../src/ble/ad_parser.c \
|
|
|
|
../../src/ble/att_db.c \
|
2016-01-06 14:32:27 +00:00
|
|
|
../../src/ble/att_dispatch.c \
|
|
|
|
../../src/ble/att_server.c \
|
|
|
|
../../src/ble/le_device_db_memory.c \
|
|
|
|
../../src/ble/sm.c \
|
2016-01-17 21:19:28 +00:00
|
|
|
../../src/classic/hsp_hs.c \
|
2016-02-26 20:16:32 +00:00
|
|
|
../../src/classic/btstack_link_key_db_memory.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 \
|
|
|
|
../../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 \
|
|
|
|
../../src/l2cap.c \
|
|
|
|
../../src/l2cap_signaling.c \
|
|
|
|
|
|
|
|
# WICED port incl. support for Broadcom chipset
|
|
|
|
$(NAME)_SOURCES += \
|
2016-04-20 21:18:15 +00:00
|
|
|
main.c \
|
|
|
|
btstack_run_loop_wiced.c \
|
|
|
|
hci_transport_h4_wiced.c \
|
2016-02-26 20:16:32 +00:00
|
|
|
../../chipset/bcm/btstack_chipset_bcm.c \
|
2016-07-04 09:42:13 +00:00
|
|
|
|
|
|
|
ifeq ($(BT_CHIP_XTAL_FREQUENCY),)
|
2016-07-06 12:08:21 +00:00
|
|
|
$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/bt_firmware_image.c
|
2016-07-04 09:42:13 +00:00
|
|
|
else
|
2016-07-06 12:08:21 +00:00
|
|
|
$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_CHIP_XTAL_FREQUENCY)/bt_firmware_image.c
|
2016-07-04 09:42:13 +00:00
|
|
|
endif
|