Home
last modified time | relevance | path

Searched refs:file_content (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/scripts/pylib/twister/twisterlib/
Dsize_calc.py302 file_content = file.readlines()
306 file_content = []
307 return file_content
309 def _find_offset_of_last_pattern_occurrence(self, file_content: typing.List[str]) -> int:
316 if len(file_content) == 0:
322 for idx, line in enumerate(reversed(file_content)):
332 …def _get_lines_with_footprint(self, start_offset: int, file_content: typing.List[str]) -> typing.L…
339 if len(file_content) == 0:
342 if start_offset > len(file_content) or start_offset <= 0:
343 info_line_idx_start = len(file_content) - 1
[all …]
/Zephyr-Core-3.5.0/scripts/build/
Duf2conv.py102 def convert_to_carray(file_content): argument
103 outp = "const unsigned long bindata_len = %d;\n" % len(file_content)
105 for i in range(len(file_content)):
108 outp += "0x%02x, " % file_content[i]
112 def convert_to_uf2(file_content): argument
117 numblocks = (len(file_content) + 255) // 256
121 chunk = file_content[ptr:ptr + 256]
230 file_content = file.read()
231 return re.search("Board-ID: ([^\r\n]*)", file_content).group(1)