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)
|
|
|
|
|
|
|
|
GLOBAL_INCLUDES += . ../../src ../../platform/embedded ../../chipset/bcm ../../../../
|
|
|
|
|
|
|
|
# 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 \
|
|
|
|
../../src/ble/le_device_db_memory.c \
|
|
|
|
../../src/ble/sm.c \
|
2016-01-17 22:19:28 +01:00
|
|
|
../../src/classic/hsp_hs.c \
|
2016-02-26 21:16:32 +01:00
|
|
|
../../src/classic/btstack_link_key_db_memory.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 \
|
|
|
|
../../src/l2cap.c \
|
|
|
|
../../src/l2cap_signaling.c \
|
|
|
|
|
|
|
|
# WICED port incl. support for Broadcom chipset
|
|
|
|
$(NAME)_SOURCES += \
|
2016-04-20 23:18:15 +02:00
|
|
|
main.c \
|
2016-09-13 15:55:34 +02:00
|
|
|
btstack_link_key_db_wiced_dct.c \
|
2016-04-20 23:18:15 +02:00
|
|
|
btstack_run_loop_wiced.c \
|
|
|
|
hci_transport_h4_wiced.c \
|
2016-02-26 21:16:32 +01: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
|