Lines Matching refs:content
190 content = open(pinctrl_file).readlines()
191 for i, line in enumerate(content[::-1]):
193 last_line = len(content) - (i + 1)
202 for line in content[:last_line]:
236 for line in content[last_line:]:
242 def board_is_nrf(content: List[str]) -> bool:
252 for line in content:
277 content = ""
280 content += f"\t\tgroup{i + 1} {{\n"
290 content += (
296 content += f"\t\t\t{entry.value};\n"
298 content += "\t\t};\n"
300 return content
332 def insert_pinctrl_include(content: List[str], board: str) -> None:
344 for i, line in enumerate(content):
372 content.insert(line, f'#include "{board}-pinctrl.dtsi"\n')
375 def adjust_content(content: List[str], board: str) -> List[DeviceConfiguration]:
390 for line in content:
446 content[:] = new_content
644 content = open(input_file).readlines()
646 if not skip_nrf_check and not board_is_nrf(content):
654 configs = adjust_content(content, board_name)
658 f.writelines(content)