mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
cc256x: support older chipsets
This commit is contained in:
parent
95fd1475d5
commit
a3fe55ccff
@ -4,6 +4,38 @@
|
||||
#
|
||||
BASE_URL = https://git.ti.com/ti-bt/service-packs/blobs/raw/a027ae390d8790e56e1c78136c78fe6537470e91
|
||||
|
||||
# first generation CC2560 - TIInit_6.2.31.bts part of .zip archive
|
||||
|
||||
CC2560_BT_SP_BTS.zip:
|
||||
curl -O http://processors.wiki.ti.com/images/d/da/CC2560_BT_SP_BTS.zip
|
||||
|
||||
bluetooth_init_cc2560_2.44.bts: CC2560_BT_SP_BTS.zip
|
||||
unzip CC2560_BT_SP_BTS.zip
|
||||
mv CC2560_BT_SP_BTS/bluetooth_init_cc2560_2.44.bts .
|
||||
rm -rf CC2560_BT_SP_BTS
|
||||
|
||||
|
||||
# second generation CC2560A and CC2564 - TIInit_6.6.15.bts part of .zip archive
|
||||
|
||||
CC2560A_BT_SP_BTS.zip:
|
||||
curl -O http://processors.wiki.ti.com/images/e/e7/CC2560A_BT_SP_BTS.zip
|
||||
|
||||
CC2564_BT_BLE_SP_BTS.zip:
|
||||
curl -O http://processors.wiki.ti.com/images/1/1e/CC2564_BT_BLE_SP_BTS.zip
|
||||
|
||||
bluetooth_init_cc2560A_2.14.bts: CC2560A_BT_SP_BTS.zip
|
||||
unzip CC2560A_BT_SP_BTS.zip
|
||||
mv CC2560A_BT_SP_BTS/bluetooth_init_cc2560a_2.14.bts .
|
||||
rm -rf CC2560A_BT_SP_BTS
|
||||
|
||||
bluetooth_init_cc2564_2.14.bts: CC2564_BT_BLE_SP_BTS.zip
|
||||
unzip CC2564_BT_BLE_SP_BTS.zip
|
||||
mv CC2564_BT_BLE_SP_BTS/bluetooth_init_cc2564_2.14.bts .
|
||||
rm -rf CC2564_BT_BLE_SP_BTS
|
||||
|
||||
|
||||
# third generation
|
||||
|
||||
bluetooth_init_cc2560B_1.2_BT_Spec_4.0.bts:
|
||||
curl -O $(BASE_URL)/bluetooth_init_cc2560B_1.2_BT_Spec_4.0.bts
|
||||
|
||||
@ -31,6 +63,17 @@ TIInit_12.8.32.bts:
|
||||
# convert to .c files
|
||||
CONVERSION_SCRIPT=$(BTSTACK_ROOT)/chipset/cc256x/convert_bts_init_scripts.py
|
||||
|
||||
bluetooth_init_cc2560_2.44.c: bluetooth_init_cc2560_2.44.bts
|
||||
$(CONVERSION_SCRIPT)
|
||||
|
||||
|
||||
bluetooth_init_cc2560A_2.14.c: bluetooth_init_cc2560A_2.14.bts
|
||||
$(CONVERSION_SCRIPT)
|
||||
|
||||
bluetooth_init_cc2564_2.14.c: bluetooth_init_cc2564_2.14.bts
|
||||
$(CONVERSION_SCRIPT)
|
||||
|
||||
|
||||
bluetooth_init_cc2560B_1.2_BT_Spec_4.0.c: bluetooth_init_cc2560B_1.2_BT_Spec_4.0.bts
|
||||
$(CONVERSION_SCRIPT)
|
||||
|
||||
@ -43,11 +86,19 @@ bluetooth_init_cc2560B_1.2_BT_Spec_4.1.c: bluetooth_init_cc2560B_1.2_BT_Spec_4.1
|
||||
bluetooth_init_cc2564B_1.2_BT_Spec_4.1.c: bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts BLE_init_cc2564B_1.2.bts
|
||||
$(CONVERSION_SCRIPT)
|
||||
|
||||
|
||||
TIInit_11.8.32.c: TIInit_11.8.32.bts
|
||||
$(CONVERSION_SCRIPT)
|
||||
|
||||
TIInit_12.10.28.c: TIInit_12.10.28.bts
|
||||
$(CONVERSION_SCRIPT)
|
||||
|
||||
TIInit_12.8.32.c: /TIInit_12.8.32.bts
|
||||
TIInit_12.8.32.c: TIInit_12.8.32.bts
|
||||
$(CONVERSION_SCRIPT)
|
||||
|
||||
all-scripts: bluetooth_init_cc2560_2.44.c bluetooth_init_cc2560A_2.14.c bluetooth_init_cc2564_2.14.bts bluetooth_init_cc2560B_1.2_BT_Spec_4.0.c bluetooth_init_cc2564B_1.2_BT_Spec_4.0.c bluetooth_init_cc2560B_1.2_BT_Spec_4.1.c bluetooth_init_cc2564B_1.2_BT_Spec_4.1.c TIInit_11.8.32.c TIInit_12.10.28.c TIInit_12.8.32.c
|
||||
|
||||
clean-scripts:
|
||||
rm -fr CC256*.zip bluetooth_init_cc256*.bts bluetooth_init_cc256*.c TIInit_*.bts TIInit_*.c BLE_init_cc256*.bts BLE_init_cc256*.c
|
||||
|
||||
|
||||
|
@ -142,14 +142,13 @@ def convert_bts(main_bts_file, bts_add_on):
|
||||
|
||||
if (action_type == 1): # hci command
|
||||
|
||||
# opcode = (ord(action_data[2]) << 8) | ord(action_data[1])
|
||||
opcode = (action_data[2] << 8) | action_data[1]
|
||||
if opcode == 0xFF36:
|
||||
continue # skip baud rate command
|
||||
if opcode == 0xFD0C:
|
||||
have_eHCILL = True
|
||||
if opcode == 0xFD82:
|
||||
modulation_type = ord(action_data[4])
|
||||
modulation_type = action_data[4]
|
||||
if modulation_type == 0:
|
||||
have_power_vector_gfsk = True
|
||||
elif modulation_type == 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user