Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/scripts/
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)