mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
Handle TI CC256x Initscripts with new initscripts_TIInit_* name
This commit is contained in:
parent
69fd3b4b73
commit
a0eaf5316f
@ -274,13 +274,19 @@ if not files:
|
|||||||
|
|
||||||
# convert each of them
|
# convert each of them
|
||||||
for name in files:
|
for name in files:
|
||||||
|
name_lower = name.lower()
|
||||||
# skip BLE and AVRP add-ons
|
# skip BLE and AVRP add-ons
|
||||||
if name.lower().startswith('ble_init_cc'):
|
if name_lower.startswith('ble_init_cc'):
|
||||||
print "Skipping BLE add-on", name
|
print "Skipping BLE add-on", name
|
||||||
continue
|
continue
|
||||||
if name.lower().startswith('avpr_init_cc'):
|
if name_lower.startswith('avpr_init_cc'):
|
||||||
print "Skipping AVPR add-on", name
|
print "Skipping AVPR add-on", name
|
||||||
continue
|
continue
|
||||||
|
if re.match("initscripts_tiinit_.*_ble_add-on.bts", name_lower):
|
||||||
|
print "Skipping BLE add-on", name
|
||||||
|
continue
|
||||||
|
if re.match("initscripts_tiinit_.*_avpr_add-on.bts", name_lower):
|
||||||
|
print "Skipping AVPR add-on", name
|
||||||
|
|
||||||
# check for BLE add-on
|
# check for BLE add-on
|
||||||
add_on = ""
|
add_on = ""
|
||||||
@ -291,6 +297,13 @@ for name in files:
|
|||||||
add_on = potential_add_on
|
add_on = potential_add_on
|
||||||
print "Found", add_on, "add on for", name
|
print "Found", add_on, "add on for", name
|
||||||
|
|
||||||
|
name_parts = re.match('initscripts_TIInit_(\d*\.\d*\.\d*)_.*.bts', name)
|
||||||
|
if name_parts:
|
||||||
|
potential_add_on = 'initscripts_TIInit_%s_ble_add-on.bts' % name_parts.group(1)
|
||||||
|
if os.path.isfile(potential_add_on):
|
||||||
|
add_on = potential_add_on
|
||||||
|
print "Found", add_on, "add on for", name
|
||||||
|
|
||||||
convert_bts(name, add_on)
|
convert_bts(name, add_on)
|
||||||
|
|
||||||
# done
|
# done
|
||||||
|
@ -176,6 +176,10 @@ the BLE part. The conversion script has been updated to detect
|
|||||||
*bluetooth_init_cc256x_1.2.bts* and adds *BLE_init_cc256x_1.2.bts*
|
*bluetooth_init_cc256x_1.2.bts* and adds *BLE_init_cc256x_1.2.bts*
|
||||||
if present and merges them into a single .c file.
|
if present and merges them into a single .c file.
|
||||||
|
|
||||||
|
**Update 2:** In May 2015, TI renamed the init scripts to match
|
||||||
|
the naming scheme previously used on Linux systems. The conversion
|
||||||
|
script has been updated to also detect *initscripts_TIInit_6.7.16_bt_spec_4.1.bts*
|
||||||
|
and integrates *initscripts_TIInit_6.7.16_ble_add-on.bts* if present.
|
||||||
|
|
||||||
### MSP-EXP430F5438 + CC256x Platform {#sec:platformMSP430QuickStart}
|
### MSP-EXP430F5438 + CC256x Platform {#sec:platformMSP430QuickStart}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user