add tuh_hid_itf_get_info() and change tuh_cdc_itf_get_info() to use new tuh_itf_info_t
This commit is contained in:
@@ -34,7 +34,6 @@ def build_family(example, family, make_option):
|
||||
# sum all element of same index (column sum)
|
||||
return list(map(sum, list(zip(*result))))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# IAR CC
|
||||
if make_iar_option not in sys.argv:
|
||||
@@ -68,7 +67,8 @@ if __name__ == '__main__':
|
||||
print(build_separator)
|
||||
for family in all_families:
|
||||
fret = build_family(example, family, make_iar_option)
|
||||
total_result = list(map(lambda x, y: x + y, total_result, fret))
|
||||
if len(fret) == len(total_result):
|
||||
total_result = [total_result[i] + fret[i] for i in range(len(fret))]
|
||||
|
||||
total_time = time.monotonic() - total_time
|
||||
print(build_separator)
|
||||
|
@@ -105,7 +105,13 @@ def get_a_dep(d):
|
||||
|
||||
if __name__ == "__main__":
|
||||
status = 0
|
||||
deps = list(deps_mandatory.keys()) + sys.argv[1:]
|
||||
deps = list(deps_mandatory.keys())
|
||||
# get all if executed with all as argument
|
||||
if len(sys.argv) == 2 and sys.argv[1] == 'all':
|
||||
deps += deps_optional
|
||||
else:
|
||||
deps += sys.argv[1:]
|
||||
|
||||
with Pool() as pool:
|
||||
status = sum(pool.map(get_a_dep, deps))
|
||||
sys.exit(status)
|
||||
|
Reference in New Issue
Block a user