xref: /btstack/port/wiced-h4/wiced-h4.mk (revision e25b4a2f90caab6c2fc72fcab38c044deb4584b7)
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 \
15*e25b4a2fSMatthias 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
200a11ef38SMatthias Ringwald$(NAME)_COMPONENTS += crypto/micro-ecc
210a11ef38SMatthias Ringwald
220a11ef38SMatthias Ringwald# core BTstack sources
230a11ef38SMatthias Ringwald$(NAME)_SOURCES += \
240a11ef38SMatthias Ringwald	../../src/ad_parser.c    		      \
250a11ef38SMatthias Ringwald	../../src/ble/att_db.c                \
260a11ef38SMatthias Ringwald	../../src/ble/att_dispatch.c 		  \
270a11ef38SMatthias Ringwald	../../src/ble/att_server.c   		  \
280a11ef38SMatthias Ringwald	../../src/ble/gatt_client.c   		  \
290a11ef38SMatthias Ringwald	../../src/ble/le_device_db_memory.c   \
300a11ef38SMatthias Ringwald	../../src/ble/gatt-service/battery_service_server.c   \
310a11ef38SMatthias Ringwald	../../src/ble/sm.c          		  \
320a11ef38SMatthias Ringwald	../../src/classic/hfp.c 			  \
330a11ef38SMatthias Ringwald	../../src/classic/hfp_ag.c 			  \
340a11ef38SMatthias Ringwald	../../src/classic/hfp_hf.c 			  \
350a11ef38SMatthias Ringwald	../../src/classic/hsp_hs.c            \
360a11ef38SMatthias Ringwald	../../src/classic/hsp_hs.c            \
370a11ef38SMatthias Ringwald	../../src/classic/rfcomm.c            \
380a11ef38SMatthias Ringwald	../../src/classic/sdp_server.c        \
390a11ef38SMatthias Ringwald	../../src/classic/sdp_client.c        \
400a11ef38SMatthias Ringwald	../../src/classic/sdp_client_rfcomm.c \
410a11ef38SMatthias Ringwald	../../src/classic/sdp_util.c          \
420a11ef38SMatthias Ringwald	../../src/classic/spp_server.c        \
430a11ef38SMatthias Ringwald	../../src/btstack_linked_list.c       \
440a11ef38SMatthias Ringwald	../../src/btstack_memory.c            \
450a11ef38SMatthias Ringwald	../../src/btstack_memory_pool.c       \
460a11ef38SMatthias Ringwald	../../src/btstack_run_loop.c          \
470a11ef38SMatthias Ringwald	../../src/btstack_util.c              \
480a11ef38SMatthias Ringwald	../../src/hci.c                       \
490a11ef38SMatthias Ringwald	../../src/hci_cmd.c                   \
500a11ef38SMatthias Ringwald	../../src/hci_dump.c                  \
510a11ef38SMatthias Ringwald	../../src/hci_transport_h4.c          \
520a11ef38SMatthias Ringwald	../../src/l2cap.c                     \
530a11ef38SMatthias Ringwald	../../src/l2cap_signaling.c           \
540a11ef38SMatthias Ringwald	../../example/sco_demo_util.c         \
550a11ef38SMatthias Ringwald
560a11ef38SMatthias Ringwald# WICED port incl. support for Broadcom chipset
570a11ef38SMatthias Ringwald$(NAME)_SOURCES += \
580a11ef38SMatthias Ringwald	main.c                                               \
59*e25b4a2fSMatthias Ringwald	../../platform/wiced/btstack_link_key_db_wiced_dct.c \
60*e25b4a2fSMatthias Ringwald	../../platform/wiced/btstack_run_loop_wiced.c        \
61*e25b4a2fSMatthias Ringwald	../../platform/wiced/btstack_uart_block_wiced.c 	 \
620a11ef38SMatthias Ringwald	../../chipset/bcm/btstack_chipset_bcm.c              \
630a11ef38SMatthias Ringwald
640a11ef38SMatthias Ringwaldifeq ($(BT_CHIP_XTAL_FREQUENCY),)
650a11ef38SMatthias Ringwald$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/bt_firmware_image.c
660a11ef38SMatthias Ringwaldelse
670a11ef38SMatthias Ringwald$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_CHIP_XTAL_FREQUENCY)/bt_firmware_image.c
680a11ef38SMatthias Ringwaldendif
69