Lines Matching +full:long +full:- +full:line +full:- +full:mode

3 # SPDX-License-Identifier: MIT
5 # pylint: skip-file
33 w = buf[0:30].decode("utf-8")
36 if w[0] == ':' and re.match(rb"^[:0-9a-fA-F\r\n]+$", buf):
58 # NO-flash flag set; skip block
71 padding = newaddr - curraddr
77 assert False, "Non-word padding size at " + ptr
79 padding -= 4
94 if blockno == (numblocks - 1):
95 print("--- UF2 File Header Info ---")
108 print("----------------------------")
115 outp = "const unsigned long bindata_len = %d;\n" % len(file_content)
122 return bytes(outp, "utf-8")
127 while len(datapadding) < 512 - 256 - 32 - 4:
161 while len(hd) < 512 - 4:
172 for line in buf.split('\n'):
173 if line[0] != ":":
177 while i < len(line) - 1:
178 rec.append(int(line[i:i+2], 16))
192 while i < len(rec) - 1:
206 return b.decode("utf-8")
214 for line in to_str(r).split('\n'):
215 words = re.split(r'\s+', line)
242 with open(path + INFO_FILE, mode='r') as file:
244 return re.search(r"Board-ID: ([^\r\n]*)", file_content).group(1)
282 parser.add_argument('-b', '--base', dest='base', type=str,
285 parser.add_argument('-f', '--family', dest='family', type=str,
287 help='specify familyID - number or name (default: 0x0)')
288 parser.add_argument('-o', '--output', metavar="FILE", dest='output', type=str,
290 parser.add_argument('-d', '--device', dest="device_path",
292 parser.add_argument('-l', '--list', action='store_true',
294 parser.add_argument('-c', '--convert', action='store_true',
296 parser.add_argument('-D', '--deploy', action='store_true',
298 parser.add_argument('-w', '--wait', action='store_true',
300 parser.add_argument('-C', '--carray', action='store_true',
302 parser.add_argument('-i', '--info', action='store_true',
322 with open(args.input, mode='rb') as f:
335 outbuf = convert_from_hex_to_uf2(inpbuf.decode("utf-8"))