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 \ 17c2cab3feSMatthias Ringwald ../../3rd-party/bluedroid/decoder/include \ 18c2cab3feSMatthias Ringwald ../../3rd-party/bluedroid/encoder/include \ 19*511c7f3dSMatthias Ringwald ../../3rd-party/micro-ecc \ 20*511c7f3dSMatthias Ringwald ../../3rd-party/rijndael \ 21*511c7f3dSMatthias Ringwald ../../3rd-party/yxml \ 220a11ef38SMatthias Ringwald ../../../../ 230a11ef38SMatthias Ringwald 240a11ef38SMatthias Ringwald# micro-ecc of WICED tree used for SECP256R1 in LE Secure Connections 25b25ef1bbSMatthias Ringwald$(NAME)_COMPONENTS += $(MICRO_ECC) 260a11ef38SMatthias Ringwald 27ab379a4aSMatthias Ringwald# additional CFLAGS 28ab379a4aSMatthias Ringwald$(NAME)_CFLAGS += $(BTSTACK_CFLAGS) 29ab379a4aSMatthias Ringwald 300a11ef38SMatthias Ringwald# core BTstack sources 310a11ef38SMatthias Ringwald$(NAME)_SOURCES += \ 320a11ef38SMatthias Ringwald ../../src/ad_parser.c \ 330a11ef38SMatthias Ringwald ../../src/ble/att_db.c \ 340a11ef38SMatthias Ringwald ../../src/ble/att_dispatch.c \ 350a11ef38SMatthias Ringwald ../../src/ble/att_server.c \ 360a11ef38SMatthias Ringwald ../../src/ble/gatt_client.c \ 370a11ef38SMatthias Ringwald ../../src/ble/gatt-service/battery_service_server.c \ 38be62b313SMatthias Ringwald ../../src/ble/gatt-service/device_information_service_server.c \ 390a11ef38SMatthias Ringwald ../../src/ble/sm.c \ 400a11ef38SMatthias Ringwald ../../src/classic/hfp.c \ 410a11ef38SMatthias Ringwald ../../src/classic/hfp_ag.c \ 420a11ef38SMatthias Ringwald ../../src/classic/hfp_hf.c \ 43be62b313SMatthias Ringwald ../../src/classic/hsp_ag.c \ 440a11ef38SMatthias Ringwald ../../src/classic/hsp_hs.c \ 450a11ef38SMatthias Ringwald ../../src/classic/rfcomm.c \ 460a11ef38SMatthias Ringwald ../../src/classic/sdp_server.c \ 470a11ef38SMatthias Ringwald ../../src/classic/sdp_client.c \ 480a11ef38SMatthias Ringwald ../../src/classic/sdp_client_rfcomm.c \ 490a11ef38SMatthias Ringwald ../../src/classic/sdp_util.c \ 500a11ef38SMatthias Ringwald ../../src/classic/spp_server.c \ 51d420d8f9SMatthias Ringwald ../../src/btstack_crypto.c \ 520a11ef38SMatthias Ringwald ../../src/btstack_linked_list.c \ 530a11ef38SMatthias Ringwald ../../src/btstack_memory.c \ 540a11ef38SMatthias Ringwald ../../src/btstack_memory_pool.c \ 55e9c5f44eSMatthias Ringwald ../../src/btstack_resample.c \ 560a11ef38SMatthias Ringwald ../../src/btstack_run_loop.c \ 57e07b53a6SMatthias Ringwald ../../src/btstack_tlv.c \ 580a11ef38SMatthias Ringwald ../../src/btstack_util.c \ 590a11ef38SMatthias Ringwald ../../src/hci.c \ 600a11ef38SMatthias Ringwald ../../src/hci_cmd.c \ 610a11ef38SMatthias Ringwald ../../src/hci_dump.c \ 620a11ef38SMatthias Ringwald ../../src/hci_transport_h4.c \ 630a11ef38SMatthias Ringwald ../../src/l2cap.c \ 640a11ef38SMatthias Ringwald ../../src/l2cap_signaling.c \ 650a11ef38SMatthias Ringwald ../../example/sco_demo_util.c \ 660a11ef38SMatthias Ringwald 670a11ef38SMatthias Ringwald# WICED port incl. support for Broadcom chipset 680a11ef38SMatthias Ringwald$(NAME)_SOURCES += \ 690a11ef38SMatthias Ringwald main.c \ 70e25b4a2fSMatthias Ringwald ../../platform/wiced/btstack_link_key_db_wiced_dct.c \ 71e25b4a2fSMatthias Ringwald ../../platform/wiced/btstack_run_loop_wiced.c \ 72012f145fSMatthias Ringwald ../../platform/wiced/btstack_stdin_wiced.c \ 73e25b4a2fSMatthias Ringwald ../../platform/wiced/btstack_uart_block_wiced.c \ 7413e71c7bSMatthias Ringwald ../../platform/wiced/le_device_db_wiced_dct.c \ 7522dc8250SMatthias Ringwald ../../platform/embedded/hci_dump_embedded_stdout.c \ 760a11ef38SMatthias Ringwald ../../chipset/bcm/btstack_chipset_bcm.c \ 770a11ef38SMatthias Ringwald 780a11ef38SMatthias Ringwaldifeq ($(BT_CHIP_XTAL_FREQUENCY),) 790b793fdfSMatthias Ringwald$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_FIRMWARE_FILE) 800a11ef38SMatthias Ringwaldelse 810b793fdfSMatthias Ringwald$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_CHIP_XTAL_FREQUENCY)/$(BT_FIRMWARE_FILE) 820a11ef38SMatthias Ringwaldendif 83