Home
last modified time | relevance | path

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

/platform/rp20xx/tools/
A Duf2conv.py123 def convert_to_carray(file_content): argument
124 outp = "const unsigned long bindata_len = %d;\n" % len(file_content)
126 for i in range(len(file_content)):
129 outp += "0x%02x, " % file_content[i]
133 def convert_to_uf2(file_content): argument
138 numblocks = (len(file_content) + 255) // 256
142 chunk = file_content[ptr:ptr + 256]
251 file_content = file.read()
252 return re.search("Board-ID: ([^\r\n]*)", file_content).group(1)

Completed in 3 milliseconds