Lines Matching refs:f
64 self._name += f"_PT{match.group(1)}{match.group(2)}"
67 self._name += f"_PIO{match.group(1)}_{match.group(2)}"
70 self._name += f"_P{match.group(1)}_{match.group(2)}"
95 return f"{self._periph}_{self._signal}, {self._channel}"
96 return f"{self._periph}_{self._signal}"
338 mux_option = f"{pin.attrib.get('peripheral')}_{pin.attrib.get('signal')}"
423 zephyr_props.append(f"drive-strength = {sanitize(prop_val('drive_strength'))}")
432 zephyr_props.append(f"slew-rate = {sanitize(prop_val('slew_rate'))}")
525 file.write(f"#define {label} {prefix}('{port}',{pin},{mux}) /* PT{port}_{pin} */\n")
555 f" * NOTE: Autogenerated file by {os.path.basename(__main__.__file__)}\n"
556 f" * for {self._part_num}/signal_configuration.xml\n"
558 f" * {self._copyright}\n"
590 file.write(f"#ifndef _ZEPHYR_DTS_BINDING_{self._part_num.upper()}_\n")
591 file.write(f"#define _ZEPHYR_DTS_BINDING_{self._part_num.upper()}_\n\n")
642 f" * NOTE: Autogenerated file by {os.path.basename(__main__.__file__)}\n"
643 f" * for {self._part_num}/signal_configuration.xml\n"
645 f" * {self._copyright}\n"
651 file.write(f"\n#include <nxp/kinetis/{get_package_name(mexfile)}-pinctrl.h>\n\n")
665 file.write(f"\t/* {description} */\n")
669 file.write(f"\t * {line}\n")
671 file.write(f"\t{group.get_name().lower()}: {group.get_name().lower()} {{\n")
674 group_str = f"\t\tgroup{idx} {{\n"
678 group_str += f"<{pin.get_name()}>,\n\t\t\t\t"
684 group_str += f"\t\t\t{prop};\n"
704 print(f"Malformed XML tree {mexfile}")
707 print(f"File {mexfile} could not be opened")
724 print(f"Malformed XML tree {mexfile}")
727 print(f"File {mexfile} could not be opened")
740 print(f"Malformed XML tree {mexfile}")
743 print(f"File {mexfile} could not be opened")