btstack/port/wiced/wiced.mk
2017-04-13 16:24:06 +02:00

69 lines
2.2 KiB
Makefile

#
# 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 \
../../3rd-party/micro-ecc \
../../../../
# core BTstack sources
$(NAME)_SOURCES += \
../../src/ad_parser.c \
../../src/ble/att_db.c \
../../src/ble/att_dispatch.c \
../../src/ble/att_server.c \
../../src/ble/gatt_client.c \
../../src/ble/le_device_db_memory.c \
../../src/ble/gatt-service/battery_service_server.c \
../../src/ble/sm.c \
../../src/classic/hfp.c \
../../src/classic/hfp_ag.c \
../../src/classic/hfp_hf.c \
../../src/classic/hsp_hs.c \
../../src/classic/hsp_hs.c \
../../src/classic/rfcomm.c \
../../src/classic/sdp_server.c \
../../src/classic/sdp_client.c \
../../src/classic/sdp_client_rfcomm.c \
../../src/classic/sdp_util.c \
../../src/classic/spp_server.c \
../../src/btstack_linked_list.c \
../../src/btstack_memory.c \
../../src/btstack_memory_pool.c \
../../src/btstack_run_loop.c \
../../src/btstack_util.c \
../../src/hci.c \
../../src/hci_cmd.c \
../../src/hci_dump.c \
../../src/l2cap.c \
../../src/l2cap_signaling.c \
../../example/sco_demo_util.c \
# micro-ecc for LE Secure Connection
$(NAME)_SOURCES += \
../../3rd-party/micro-ecc/uECC.c \
# WICED port incl. support for Broadcom chipset
$(NAME)_SOURCES += \
main.c \
btstack_link_key_db_wiced_dct.c \
btstack_run_loop_wiced.c \
hci_transport_h4_wiced.c \
../../chipset/bcm/btstack_chipset_bcm.c \
ifeq ($(BT_CHIP_XTAL_FREQUENCY),)
$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/bt_firmware_image.c
else
$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_CHIP_XTAL_FREQUENCY)/bt_firmware_image.c
endif