automatically download TI service packs from git.ti.com

This commit is contained in:
Matthias Ringwald 2015-05-02 00:38:11 +02:00
parent aa0cf9f42d
commit 1a6524a9c0
6 changed files with 65 additions and 9 deletions

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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