Lines Matching refs:f
48 with bits_file.open() as f:
49 for line in f:
53 input_name = f"#define ACMP_INPUT_{m.group(1).split('_')[-1]}"
57 … print(f"Inputs {input_name} and {defines[input_value]} share the same value {input_value}.")
58 defines.update({input_value : f"{input_name} {input_value}"})
62 input_name = f"#define ACMP_INPUT_{m.group(1).split('_')[-1]}"
66 … print(f"Inputs {input_name} and {defines[input_value]} share the same value {input_value}.")
67 defines.update({input_value : f"{input_name} {input_value}"})
74 f" * Copyright (c) {datetime.date.today().year} Silicon Laboratories Inc.",
78 f" * This file was generated by the script {Path(__file__).name} in the hal_silabs module.",
82 f"#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_COMPARATOR_SILABS_ACMP_H_",
83 f"#define ZEPHYR_INCLUDE_DT_BINDINGS_COMPARATOR_SILABS_ACMP_H_",
85 f"/* ACMP Input Aliases */",
86 f"#define ACMP_INPUT_VDACOUT0 ACMP_INPUT_VDAC0OUT0",
87 f"#define ACMP_INPUT_VDACOUT1 ACMP_INPUT_VDAC0OUT1",
89 f"/* ACMP Input Definitions */",
92 f"#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_COMPARATOR_SILABS_ACMP_H_ */",
96 outfile = args.out / f"silabs-acmp.h"