MCPcopy Create free account
hub / github.com/ARMmbed/DAPLink / ranges

Function ranges

tools/post_build_script.py:39–42  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

37ALIGN_PADS = 4
38
39def ranges(i):
40 for _, b in itertools.groupby(enumerate(i), lambda x_y: x_y[1] - x_y[0]):
41 b = list(b)
42 yield b[0][1], b[-1][1]
43
44def post_build_script(input_file, output_file, board_id=None, family_id=None, bin_offset=None, flash_algo_file=None, target_ram_start=None, target_ram_end=None, flash_blob_entry="0x20000000"):
45 output_format_file = '-'.join(filter(None, (output_file, board_id, family_id, bin_offset)))

Callers 1

post_build_scriptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected