10a11ef38SMatthias Ringwald# 20a11ef38SMatthias Ringwald# BTstack port for WICED framework 30a11ef38SMatthias Ringwald# 40a11ef38SMatthias Ringwald 50a11ef38SMatthias Ringwaldifndef BT_CHIP 60a11ef38SMatthias Ringwald$(error BT_CHIP not set - WICED BTstack port only supported with Broadcom Bluetooth chipset) 70a11ef38SMatthias Ringwaldendif 80a11ef38SMatthias Ringwald 90a11ef38SMatthias RingwaldNAME := BTstack_for_BCM$(BT_CHIP)$(BT_CHIP_REVISION) 100a11ef38SMatthias Ringwald 110a11ef38SMatthias RingwaldGLOBAL_INCLUDES += \ 120a11ef38SMatthias Ringwald . \ 130a11ef38SMatthias Ringwald ../../src \ 140a11ef38SMatthias Ringwald ../../platform/embedded \ 15e25b4a2fSMatthias Ringwald ../../platform/wiced \ 160a11ef38SMatthias Ringwald ../../chipset/bcm \ 170a11ef38SMatthias Ringwald ../../../../ 180a11ef38SMatthias Ringwald 190a11ef38SMatthias Ringwald# micro-ecc of WICED tree used for SECP256R1 in LE Secure Connections 20b25ef1bbSMatthias Ringwald$(NAME)_COMPONENTS += $(MICRO_ECC) 210a11ef38SMatthias Ringwald 22ab379a4aSMatthias Ringwald# additional CFLAGS 23ab379a4aSMatthias Ringwald$(NAME)_CFLAGS += $(BTSTACK_CFLAGS) 24ab379a4aSMatthias Ringwald 250a11ef38SMatthias Ringwald# core BTstack sources 260a11ef38SMatthias Ringwald$(NAME)_SOURCES += \ 270a11ef38SMatthias Ringwald ../../src/ad_parser.c \ 280a11ef38SMatthias Ringwald ../../src/ble/att_db.c \ 290a11ef38SMatthias Ringwald ../../src/ble/att_dispatch.c \ 300a11ef38SMatthias Ringwald ../../src/ble/att_server.c \ 310a11ef38SMatthias Ringwald ../../src/ble/gatt_client.c \ 320a11ef38SMatthias Ringwald ../../src/ble/gatt-service/battery_service_server.c \ 33be62b313SMatthias Ringwald ../../src/ble/gatt-service/device_information_service_server.c \ 340a11ef38SMatthias Ringwald ../../src/ble/sm.c \ 350a11ef38SMatthias Ringwald ../../src/classic/hfp.c \ 360a11ef38SMatthias Ringwald ../../src/classic/hfp_ag.c \ 370a11ef38SMatthias Ringwald ../../src/classic/hfp_hf.c \ 38be62b313SMatthias Ringwald ../../src/classic/hsp_ag.c \ 390a11ef38SMatthias Ringwald ../../src/classic/hsp_hs.c \ 400a11ef38SMatthias Ringwald ../../src/classic/rfcomm.c \ 410a11ef38SMatthias Ringwald ../../src/classic/sdp_server.c \ 420a11ef38SMatthias Ringwald ../../src/classic/sdp_client.c \ 430a11ef38SMatthias Ringwald ../../src/classic/sdp_client_rfcomm.c \ 440a11ef38SMatthias Ringwald ../../src/classic/sdp_util.c \ 450a11ef38SMatthias Ringwald ../../src/classic/spp_server.c \ 46d420d8f9SMatthias Ringwald ../../src/btstack_crypto.c \ 470a11ef38SMatthias Ringwald ../../src/btstack_linked_list.c \ 480a11ef38SMatthias Ringwald ../../src/btstack_memory.c \ 490a11ef38SMatthias Ringwald ../../src/btstack_memory_pool.c \ 50*e9c5f44eSMatthias Ringwald ../../src/btstack_resample.c \ 510a11ef38SMatthias Ringwald ../../src/btstack_run_loop.c \ 52e07b53a6SMatthias Ringwald ../../src/btstack_tlv.c \ 530a11ef38SMatthias Ringwald ../../src/btstack_util.c \ 540a11ef38SMatthias Ringwald ../../src/hci.c \ 550a11ef38SMatthias Ringwald ../../src/hci_cmd.c \ 560a11ef38SMatthias Ringwald ../../src/hci_dump.c \ 570a11ef38SMatthias Ringwald ../../src/hci_transport_h4.c \ 580a11ef38SMatthias Ringwald ../../src/l2cap.c \ 590a11ef38SMatthias Ringwald ../../src/l2cap_signaling.c \ 600a11ef38SMatthias Ringwald ../../example/sco_demo_util.c \ 610a11ef38SMatthias Ringwald 620a11ef38SMatthias Ringwald# WICED port incl. support for Broadcom chipset 630a11ef38SMatthias Ringwald$(NAME)_SOURCES += \ 640a11ef38SMatthias Ringwald main.c \ 65e25b4a2fSMatthias Ringwald ../../platform/wiced/btstack_link_key_db_wiced_dct.c \ 66e25b4a2fSMatthias Ringwald ../../platform/wiced/btstack_run_loop_wiced.c \ 67012f145fSMatthias Ringwald ../../platform/wiced/btstack_stdin_wiced.c \ 68e25b4a2fSMatthias Ringwald ../../platform/wiced/btstack_uart_block_wiced.c \ 6913e71c7bSMatthias Ringwald ../../platform/wiced/le_device_db_wiced_dct.c \ 700a11ef38SMatthias Ringwald ../../chipset/bcm/btstack_chipset_bcm.c \ 710a11ef38SMatthias Ringwald 720a11ef38SMatthias Ringwaldifeq ($(BT_CHIP_XTAL_FREQUENCY),) 730b793fdfSMatthias Ringwald$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_FIRMWARE_FILE) 740a11ef38SMatthias Ringwaldelse 750b793fdfSMatthias Ringwald$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_CHIP_XTAL_FREQUENCY)/$(BT_FIRMWARE_FILE) 760a11ef38SMatthias Ringwaldendif 77