diff --git a/chipset-cc256x/Makefile.inc b/chipset-cc256x/Makefile.inc new file mode 100644 index 000000000..3f7a5ab30 --- /dev/null +++ b/chipset-cc256x/Makefile.inc @@ -0,0 +1,41 @@ +# FROM http://processors.wiki.ti.com/index.php/CC256x_Downloads +BASE_URL = https://git.ti.com/ti-bt/service-packs/blobs/raw/a027ae390d8790e56e1c78136c78fe6537470e91 +CONVERSION_SCRIPT=$(BTSTACK_ROOT)/chipset-cc256x/convert_bts_init_scripts.py + +SERVICE_PACKS = \ + BLE_init_cc2564B_1.2.bts \ + bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts \ + bluetooth_init_cc2564B_1.2_BT_Spec_4.0.bts \ + bluetooth_init_cc2560B_1.2_BT_Spec_4.0.bts \ + bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts \ + TIInit_11.8.32.bts \ + +bluetooth_init_cc2560B_1.2_BT_Spec_4.0.c: + curl -O $(BASE_URL)/bluetooth_init_cc2560B_1.2_BT_Spec_4.0.bts + $(CONVERSION_SCRIPT) + +bluetooth_init_cc2564B_1.2_BT_Spec_4.0.c: + curl -O $(BASE_URL)/bluetooth_init_cc2564B_1.2_BT_Spec_4.0.bts + curl -O $(BASE_URL)/BLE_init_cc2564B_1.2.bts + $(CONVERSION_SCRIPT) + +bluetooth_init_cc2560B_1.2_BT_Spec_4.1.c: + curl -O $(BASE_URL)/bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts + $(CONVERSION_SCRIPT) + +bluetooth_init_cc2564B_1.2_BT_Spec_4.1.c: + curl -O $(BASE_URL)/bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts + curl -O $(BASE_URL)/BLE_init_cc2564B_1.2.bts + $(CONVERSION_SCRIPT) + +TIInit_11.8.32.c: + curl -O $(BASE_URL)/TIInit_11.8.32.bts + $(CONVERSION_SCRIPT) + +TIInit_12.10.28.c: + curl -O $(BASE_URL)/TIInit_12.10.28.bts + $(CONVERSION_SCRIPT) + +TIInit_12.8.32.c: + curl -O $(BASE_URL)/TIInit_12.8.32.bts + $(CONVERSION_SCRIPT) diff --git a/platforms/ez430-rf2560/Makefile b/platforms/ez430-rf2560/Makefile index 840fc298b..a841ef077 100644 --- a/platforms/ez430-rf2560/Makefile +++ b/platforms/ez430-rf2560/Makefile @@ -7,8 +7,8 @@ # # init scripts -CC2560B = bluetooth_init_cc2560B_1.0_BT_Spec_4.1.o -CC2564B = bluetooth_init_cc2564B_1.0_BT_Spec_4.1.o +CC2560B = bluetooth_init_cc2560B_1.2_BT_Spec_4.1.o +CC2564B = bluetooth_init_cc2564B_1.2_BT_Spec_4.1.o CC2567 = CC256x_BT_Service_Pack_2.8_ANT_1.16.o BTSTACK_ROOT = ../.. @@ -99,6 +99,9 @@ LCD_OBJ = $(LCD:.c=.o) all: led_counter.hex spp_counter.hex spp_accel.hex gap_inquiry.hex spp_flowcontrol.hex \ sdp_rfcomm_query.hex sdp_general_query.hex +# fetch and convert init scripts +include ${BTSTACK_ROOT}/chipset-cc256x/Makefile.inc + # compiling requires a 20-bit mspgcc version # spp_and_le_counter.hex @@ -144,7 +147,7 @@ sdp_general_query.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${SDP_CLIENT} ${CC25 ${CC} $^ ${LDFLAGS} -o $@ clean: - rm -f $ *.o *.out *.hex profile.h spp_and_le_counter.h ../driver/*.o ../../src/*.o ../src/*.o ../firmware/*.o ${BTSTACK_ROOT}/chipset-cc256x/*.o ${BTSTACK_ROOT}/src/*.o + rm -f $ *.o *.out *.hex profile.h spp_and_le_counter.h bluetooth*.c BLE*.c *.bts size: all msp430-size *.o diff --git a/platforms/msp-exp430f5438-cc2564b/Makefile b/platforms/msp-exp430f5438-cc2564b/Makefile index deff898c1..d00ec2777 100644 --- a/platforms/msp-exp430f5438-cc2564b/Makefile +++ b/platforms/msp-exp430f5438-cc2564b/Makefile @@ -7,8 +7,8 @@ # # init scripts -CC2560B = bluetooth_init_cc2560B_1.0_BT_Spec_4.1.o -CC2564B = bluetooth_init_cc2564B_1.0_BT_Spec_4.1.o +CC2560B = bluetooth_init_cc2560B_1.2_BT_Spec_4.1.o +CC2564B = bluetooth_init_cc2564B_1.2_BT_Spec_4.1.o CC2567 = CC256x_BT_Service_Pack_2.8_ANT_1.16.o BTSTACK_ROOT = ../.. @@ -99,6 +99,9 @@ LCD_OBJ = $(LCD:.c=.o) all: led_counter.hex spp_counter.hex spp_accel.hex gap_inquiry.hex spp_flowcontrol.hex \ sdp_rfcomm_query.hex sdp_general_query.hex ble_server.hex +# fetch and convert init scripts +include ${BTSTACK_ROOT}/chipset-cc256x/Makefile.inc + # compiling requires a 20-bit mspgcc version # hid_demo.hex # spp_and_le_counter.hex @@ -145,7 +148,7 @@ sdp_general_query.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${SDP_CLIENT} ${CC25 ${CC} $^ ${LDFLAGS} -o $@ clean: - rm -f $ *.o *.out *.hex profile.h spp_and_le_counter.h ../driver/*.o ../../src/*.o ../src/*.o ../firmware/*.o ${BTSTACK_ROOT}/chipset-cc256x/*.o ${BTSTACK_ROOT}/src/*.o + rm -f $ *.o *.out *.hex profile.h spp_and_le_counter.h size: all msp430-size *.o diff --git a/platforms/msp430f5229lp-cc2564b/Makefile b/platforms/msp430f5229lp-cc2564b/Makefile index d164c8fa0..131443c5c 100644 --- a/platforms/msp430f5229lp-cc2564b/Makefile +++ b/platforms/msp430f5229lp-cc2564b/Makefile @@ -7,8 +7,8 @@ # # init scripts -CC2560B = bluetooth_init_cc2560B_1.0_BT_Spec_4.1.o -CC2564B = bluetooth_init_cc2564B_1.0_BT_Spec_4.1.o +CC2560B = bluetooth_init_cc2560B_1.2_BT_Spec_4.1.o +CC2564B = bluetooth_init_cc2564B_1.2_BT_Spec_4.1.o CC2567 = CC256x_BT_Service_Pack_2.8_ANT_1.16.o BTSTACK_ROOT = ../.. @@ -100,6 +100,9 @@ BLE_OBJ = $(BLE:.c=.o) all: led_counter.hex spp_counter.hex gap_inquiry.hex spp_flowcontrol.hex \ sdp_rfcomm_query.hex sdp_general_query.hex ble_server.hex +# fetch and convert init scripts +include ${BTSTACK_ROOT}/chipset-cc256x/Makefile.inc + # compiling requires a 20-bit mspgcc version # spp_and_le_counter.hex diff --git a/platforms/posix-wl183x/Makefile b/platforms/posix-wl183x/Makefile index f1a00f559..c788c509a 100644 --- a/platforms/posix-wl183x/Makefile +++ b/platforms/posix-wl183x/Makefile @@ -8,6 +8,9 @@ COMMON += hci_transport_h4.c run_loop_posix.c remote_device_db_fs.c include ${BTSTACK_ROOT}/example/embedded/Makefile.inc +# fetch and convert init scripts +include ${BTSTACK_ROOT}/chipset-cc256x/Makefile.inc + CFLAGS += -I$(BTSTACK_ROOT)/chipset-cc256x # CC = gcc-fsf-4.9 diff --git a/platforms/stm32-f103rb-nucleo/Makefile b/platforms/stm32-f103rb-nucleo/Makefile index 6cebaaa15..a47fdebea 100644 --- a/platforms/stm32-f103rb-nucleo/Makefile +++ b/platforms/stm32-f103rb-nucleo/Makefile @@ -23,7 +23,7 @@ CORE = \ COMMON = \ bt_control_cc256x.c \ - bluetooth_init_cc2564B_1.0_BT_Spec_4.1.c \ + bluetooth_init_cc2564B_1.2_BT_Spec_4.1.c \ hci.c \ hci_cmds.c \ hci_dump.c \ @@ -60,6 +60,9 @@ examples: libopencm3/lib/libopencm3_stm32f1.a spp_and_le_counter.h spp_and_le_co include libopencm3.stm32f1.mk +# fetch and convert init scripts +include ${BTSTACK_ROOT}/chipset-cc256x/Makefile.inc + # clean: # rm -f *.map *.o *.d *.out *.elf *.bin *.hex ../driver/*.o ../../src/*.o ../../ble/*.o ../firmware/*.o ${BTSTACK_ROOT}/chipset-cc256x/*.o ${BTSTACK_ROOT}/src/*.o