1*1182cb7eSMatthias Ringwald# 2*1182cb7eSMatthias Ringwald# BTstack port for WICED framework 3*1182cb7eSMatthias Ringwald# 4*1182cb7eSMatthias Ringwald 5*1182cb7eSMatthias Ringwaldifndef BT_CHIP 6*1182cb7eSMatthias Ringwald$(error BT_CHIP not set - WICED BTstack port only supported with Broadcom Bluetooth chipset) 7*1182cb7eSMatthias Ringwaldendif 8*1182cb7eSMatthias Ringwald 9*1182cb7eSMatthias RingwaldNAME := BTstack_for_BCM$(BT_CHIP)$(BT_CHIP_REVISION) 10*1182cb7eSMatthias Ringwald 11*1182cb7eSMatthias RingwaldGLOBAL_INCLUDES += \ 12*1182cb7eSMatthias Ringwald . \ 13*1182cb7eSMatthias Ringwald ../../src \ 14*1182cb7eSMatthias Ringwald ../../platform/embedded \ 15*1182cb7eSMatthias Ringwald ../../platform/wiced \ 16*1182cb7eSMatthias Ringwald ../../chipset/bcm \ 17*1182cb7eSMatthias Ringwald ../../../../ 18*1182cb7eSMatthias Ringwald 19*1182cb7eSMatthias Ringwald# micro-ecc of WICED tree used for SECP256R1 in LE Secure Connections 20*1182cb7eSMatthias Ringwald$(NAME)_COMPONENTS += $(MICRO_ECC) 21*1182cb7eSMatthias Ringwald 22*1182cb7eSMatthias Ringwald# additional CFLAGS 23*1182cb7eSMatthias Ringwald$(NAME)_CFLAGS += $(BTSTACK_CFLAGS) 24*1182cb7eSMatthias Ringwald 25*1182cb7eSMatthias Ringwald# core BTstack sources 26*1182cb7eSMatthias Ringwald$(NAME)_SOURCES += \ 27*1182cb7eSMatthias Ringwald ../../src/ad_parser.c \ 28*1182cb7eSMatthias Ringwald ../../src/ble/att_db.c \ 29*1182cb7eSMatthias Ringwald ../../src/ble/att_dispatch.c \ 30*1182cb7eSMatthias Ringwald ../../src/ble/att_server.c \ 31*1182cb7eSMatthias Ringwald ../../src/ble/gatt_client.c \ 32*1182cb7eSMatthias Ringwald ../../src/ble/gatt-service/battery_service_server.c \ 33*1182cb7eSMatthias Ringwald ../../src/ble/gatt-service/device_information_service_server.c \ 34*1182cb7eSMatthias Ringwald ../../src/ble/sm.c \ 35*1182cb7eSMatthias Ringwald ../../src/classic/hfp.c \ 36*1182cb7eSMatthias Ringwald ../../src/classic/hfp_ag.c \ 37*1182cb7eSMatthias Ringwald ../../src/classic/hfp_hf.c \ 38*1182cb7eSMatthias Ringwald ../../src/classic/hsp_ag.c \ 39*1182cb7eSMatthias Ringwald ../../src/classic/hsp_hs.c \ 40*1182cb7eSMatthias Ringwald ../../src/classic/rfcomm.c \ 41*1182cb7eSMatthias Ringwald ../../src/classic/sdp_server.c \ 42*1182cb7eSMatthias Ringwald ../../src/classic/sdp_client.c \ 43*1182cb7eSMatthias Ringwald ../../src/classic/sdp_client_rfcomm.c \ 44*1182cb7eSMatthias Ringwald ../../src/classic/sdp_util.c \ 45*1182cb7eSMatthias Ringwald ../../src/classic/spp_server.c \ 46*1182cb7eSMatthias Ringwald ../../src/btstack_crypto.c \ 47*1182cb7eSMatthias Ringwald ../../src/btstack_linked_list.c \ 48*1182cb7eSMatthias Ringwald ../../src/btstack_memory.c \ 49*1182cb7eSMatthias Ringwald ../../src/btstack_memory_pool.c \ 50*1182cb7eSMatthias Ringwald ../../src/btstack_resample.c \ 51*1182cb7eSMatthias Ringwald ../../src/btstack_run_loop.c \ 52*1182cb7eSMatthias Ringwald ../../src/btstack_util.c \ 53*1182cb7eSMatthias Ringwald ../../src/btstack_slip.c \ 54*1182cb7eSMatthias Ringwald ../../src/btstack_tlv.c \ 55*1182cb7eSMatthias Ringwald ../../src/hci.c \ 56*1182cb7eSMatthias Ringwald ../../src/hci_cmd.c \ 57*1182cb7eSMatthias Ringwald ../../src/hci_dump.c \ 58*1182cb7eSMatthias Ringwald ../../src/hci_transport_h5.c \ 59*1182cb7eSMatthias Ringwald ../../src/l2cap.c \ 60*1182cb7eSMatthias Ringwald ../../src/l2cap_signaling.c \ 61*1182cb7eSMatthias Ringwald ../../example/sco_demo_util.c \ 62*1182cb7eSMatthias Ringwald 63*1182cb7eSMatthias Ringwald# WICED port incl. support for Broadcom chipset 64*1182cb7eSMatthias Ringwald$(NAME)_SOURCES += \ 65*1182cb7eSMatthias Ringwald main.c \ 66*1182cb7eSMatthias Ringwald btstack_aes128_wiced.c \ 67*1182cb7eSMatthias Ringwald ../../platform/wiced/btstack_link_key_db_wiced_dct.c \ 68*1182cb7eSMatthias Ringwald ../../platform/wiced/btstack_run_loop_wiced.c \ 69*1182cb7eSMatthias Ringwald ../../platform/wiced/btstack_stdin_wiced.c \ 70*1182cb7eSMatthias Ringwald ../../platform/wiced/btstack_uart_block_wiced.c \ 71*1182cb7eSMatthias Ringwald ../../platform/wiced/le_device_db_wiced_dct.c \ 72*1182cb7eSMatthias Ringwald ../../chipset/bcm/btstack_chipset_bcm.c \ 73*1182cb7eSMatthias Ringwald ../../chipset/bcm/btstack_chipset_bcm_download_firmware.c \ 74*1182cb7eSMatthias Ringwald 75*1182cb7eSMatthias Ringwaldifeq ($(BT_CHIP_XTAL_FREQUENCY),) 76*1182cb7eSMatthias Ringwald$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_FIRMWARE_FILE) 77*1182cb7eSMatthias Ringwaldelse 78*1182cb7eSMatthias Ringwald$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_CHIP_XTAL_FREQUENCY)/$(BT_FIRMWARE_FILE) 79*1182cb7eSMatthias Ringwaldendif 80