Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 691) sorted by relevance

12345678910>>...28

/Zephyr-latest/scripts/west_commands/zspdx/
Dwriter.py28 def writeRelationshipSPDX(f, rln): argument
29f.write(f"Relationship: {_normalize_spdx_name(rln.refA)} {rln.rlnType} {_normalize_spdx_name(rln.r…
35 def writeFileSPDX(f, bf): argument
38 f.write(f"""FileName: ./{bf.relpath}
43 f.write(f"FileChecksum: SHA256: {bf.sha256}\n")
45 f.write(f"FileChecksum: MD5: {bf.md5}\n")
46 f.write(f"LicenseConcluded: {bf.concludedLicense}\n")
48 f.write(f"LicenseInfoInFile: NONE\n")
51 f.write(f"LicenseInfoInFile: {licInfoInFile}\n")
52 f.write(f"FileCopyrightText: {bf.copyrightText}\n\n")
[all …]
Dscanner.py64 log.dbg(f" - getting licenses for {filePath}")
66 with open(filePath, "r") as f:
69 for line in f:
113 for f in pkg.files.values():
114 hashes.append(f.sha1)
147 for f in pkg.files.values():
148 licsConcluded.add(f.concludedLicense)
149 for licInfo in f.licenseInfoInFile:
176 revised.append(f"({lic})")
192 log.inf(f"scanning files in package {pkg.cfg.name} in document {doc.cfg.name}")
[all …]
/Zephyr-latest/scripts/dts/
Dgen_defines.py40 with open(args.edt_pickle, 'rb') as f:
41 edt = pickle.load(f)
64 sys.exit(f"ERROR: Duplicate 'zephyr,memory-region' ({region}) properties "
65 f"between {regions[region].path} and {node.path}")
72 out_dt_define(f"{node.z_path_id}_PATH", f'"{escape(node.path)}"')
75 out_dt_define(f"{node.z_path_id}_FULL_NAME",
76 f'"{escape(node.name)}"')
77 out_dt_define(f"{node.z_path_id}_FULL_NAME_UNQUOTED",
78 f'{escape(node.name)}')
79 out_dt_define(f"{node.z_path_id}_FULL_NAME_TOKEN",
[all …]
Dgen_dts_cmake.py83 with open(args.edt_pickle, 'rb') as f:
84 edt = pickle.load(f)
106 cmake_props.append(f'"DT_CHOSEN|{node}" "{path}"')
113 cmake_props.append(f'"DT_ALIAS|{alias}" "{path}"')
117 cmake_props.append(f'"DT_NODE|{node.path}" TRUE')
120 cmake_props.append(f'"DT_NODELABEL|{label}" "{node.path}"')
129 cmake_value = f'{cmake_value}{val};'
135 cmake_prop = f'DT_PROP|{node.path}|{item}'
136 cmake_props.append(f'"{cmake_prop}" "{escape(cmake_value)}"')
144 cmake_props.append(f'"DT_REG|{node.path}|NUM" "{len(node.regs)}"')
[all …]
Dgen_driver_kconfig_dts.py59 printfile(f'')
60 printfile(f'DT_COMPAT_{compat_ident} := {compat}')
61 printfile(f'')
62 printfile(f'config DT_HAS_{compat_ident}_ENABLED')
63 printfile(f'\tdef_bool $(dt_compat_enabled,$(DT_COMPAT_{compat_ident}))')
72 with open(binding_path, encoding="utf-8") as f:
73 contents = f.read()
80 print(f"WARNING: '{binding_path}' appears in binding "
81 f"directories but isn't valid YAML: {e}")
92 printfile(f'# Generated devicetree Kconfig')
[all …]
/Zephyr-latest/arch/xtensa/core/
Dgen_zsr.py53 regs = [ f"MISC{n}" for n in range(0, int(get("XCHAL_NUM_MISC_REGS"))) ]
66 regs.append(f"EXCSAVE{il}")
79 levelsym = f"XCHAL_INT{intnum}_LEVEL"
87 with open(outfile, "w") as f:
88 f.write("/* Generated File, see gen_zsr.py */\n")
89 f.write("#ifndef ZEPHYR_ZSR_H\n")
90 f.write("#define ZEPHYR_ZSR_H\n")
92 f.write(f"# define ZSR_{need} {regs[i]}\n")
93 f.write(f"# define ZSR_{need}_STR \"{regs[i]}\"\n")
97 f.write(f"# define ZSR_EXTRA{i - len(NEEDED)} {regs[i]}\n")
[all …]
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/creds/
Dconvert_keys.py9 with open(fin, 'rb') as f:
10 data = f.read()
14 with open(fout, 'w') as f:
15 f.write("#include <stdint.h>\n")
16 f.write(f"const uint8_t {name}[] = {{")
18 f.write("\n\t")
19 f.write(", ".join(f"0x{b:02x}" for b in data[i:i+16]))
20 f.write(",")
21 f.write("\n};\n")
22 f.write(f"const uint32_t {name}_len = sizeof({name});\n")
[all …]
/Zephyr-latest/arch/x86/zefi/
Dprintf.h70 static int vpf(struct _pfr *r, const char *f, va_list ap) in vpf() argument
72 for (/**/; *f != '\0'; f++) { in vpf()
75 if (*f != '%') { in vpf()
76 pc(r, *f); in vpf()
80 if (f[1] == 'l') { in vpf()
82 f++; in vpf()
86 while (f[1] >= '0' && f[1] <= '9') { in vpf()
87 f++; in vpf()
89 if (f[1] == '.') { in vpf()
90 f++; in vpf()
[all …]
/Zephyr-latest/soc/nuvoton/npcm/common/esiost/
Desiost.py115 exit_with_failure(f'Cannot open {input_file}')
117 exit_with_failure(f'BIN Input file ({input_file}) is empty')
128 exit_with_failure(f'Input file name {input_file} '
129 f'should be differed from'
130 f' Output file name {output}')
136 print(Fore.LIGHTCYAN_EX + f'\nBIN file: {input_file}, size:'
137 f' {input_file_size} bytes')
138 print(f'Output file name: {output_file.name} \n')
152 message = f'Invalid chip name, '
164 message = f'ANCHOR max support 8 bytes'
[all …]
/Zephyr-latest/subsys/tracing/ctf/
Dctf_map.h61 #define MAP0(f, x, peek, ...) f(x) MAP_NEXT(peek, MAP1)(f, peek, __VA_ARGS__) argument
62 #define MAP1(f, x, peek, ...) f(x) MAP_NEXT(peek, MAP0)(f, peek, __VA_ARGS__) argument
67 #define MAP_LIST0(f, x, peek, ...) f(x) MAP_LIST_NEXT(peek, MAP_LIST1)(f, peek, __VA_ARGS__) argument
68 #define MAP_LIST1(f, x, peek, ...) f(x) MAP_LIST_NEXT(peek, MAP_LIST0)(f, peek, __VA_ARGS__) argument
73 #define MAP(f, ...) EVAL(MAP1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) argument
79 #define MAP_LIST(f, ...) EVAL(MAP_LIST1(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) argument
/Zephyr-latest/scripts/utils/
Dboard_v1_to_v2.py46 board_path = next(board_root.glob(f"boards/*/{board}"))
48 sys.exit(f"Board not found: {board}")
59 for f in board_path.iterdir():
60 f_new = new_board_path / f.name
62 print(f"Skipping existing file: {f_new}")
64 f.rename(f_new)
77 with open(board_settings_file, encoding='utf-8') as f:
79 board_settings = yaml.load(f) # pylint: disable=assignment-from-no-return
89 with open(board_settings_file, "w") as f:
90 yaml.dump(board_settings, f)
[all …]
/Zephyr-latest/soc/nuvoton/npcx/common/ecst/
Decst.py178 exit_with_failure(f'Cannot open {input_file}')
180 exit_with_failure(f'BIN Input file ({input_file}) is empty')
191 exit_with_failure(f'Input file name {input_file} '
192 f'should be differed from'
193 f' Output file name {output}')
199 print(Fore.LIGHTCYAN_EX + f'\nBIN file: {input_file}, size:'
200 f' {input_file_size} bytes')
201 print(f'Output file name: {output_file.name} \n')
215 message = f'Invalid chip name, '
231 print(f'- HDR - FW Header ANCHOR - Offset '
[all …]
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/
Dtest_timer.py16 logger.info(f'periodic timer behaviour using {test} mechanism:')
48 logger.info(f'min: {stats["min"] * 1_000_000:.6f} us')
49 logger.info(f'max: {stats["max"] * 1_000_000:.6f} us')
50 logger.info(f'mean: {stats["mean"] * 1_000_000:.6f} us')
51 logger.info(f'variance: {stats["var"] * 1_000_000:.6f} us')
52 logger.info(f'stddev: {stats["stddev"] * 1_000_000:.6f} us')
53 logger.info(f'total time: {stats["total_time"] * 1_000_000:.6f} us')
54 logger.info(f'expected drift: {seconds * max_drift_ppm} us')
55 logger.info(f'real drift: {time_diff * 1_000_000:.6f} us')
59 f'"testcase":"jitter_drift_timer"'
[all …]
/Zephyr-latest/samples/boards/nordic/coresight_stm/pytest/
Dtest_stm.py42 with open(f"{filepath}", errors="ignore") as autoconf:
49 logger.debug(f"{SB_CONFIG_APP_CPUPPR_RUN=}")
50 logger.debug(f"{SB_CONFIG_APP_CPUFLPR_RUN=}")
104 logger.exception(f'Could not kill nrfutil - {e}')
116 logger.debug(f"Using serial: {UART_PATH}")
118 if Path(f"{decoded_file_name}").exists():
123 logger.debug(f"{BUILD_DIR=}")
124 config_str = f"{STM_M_ID['app']}:{BUILD_DIR}/coresight_stm/zephyr/log_dictionary.json"
125 config_str += f",{STM_M_ID['rad']}:{BUILD_DIR}/remote_rad/zephyr/log_dictionary.json"
127 config_str += f",{STM_M_ID['ppr']}:{BUILD_DIR}/remote_ppr/zephyr/log_dictionary.json"
[all …]
/Zephyr-latest/doc/_extensions/zephyr/
Dapplication.py81 raise self.error(f'Unknown tool {tool}; choose from: {self.TOOLS}')
93 raise self.error(f'Unknown generator {generator}; choose from: {self.GENERATORS}')
96 raise self.error(f'Unknown host-os {host_os}; choose from: {self.HOST_OS}')
107 f"zephyr-app: {zephyr_app} is not a valid folder in the zephyr tree."
166 f'CMake and {generator}'))
206 cmake_args = f' --{cmake_args}' if cmake_args != '' else ''
207 build_args = "".join(f" -o {b}" for b in build_args) if build_args else ""
208 west_args = f' {west_args}' if west_args else ''
209 flash_args = f' {flash_args}' if flash_args else ''
210 snippet_args = ''.join(f' -S {s}' for s in snippets) if snippets else ''
[all …]
/Zephyr-latest/samples/drivers/lora/receive/
DREADME.rst42 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
45 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
48 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
51 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
55 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
58 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
61 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
64 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
67 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
70 … 68 65 6c 6c 6f 77 6f 72 6c 64 |hellowor ld
[all …]
/Zephyr-latest/samples/subsys/zbus/dyn_channel/
DREADME.rst82 W: 0f 0f 0f 0f 0f 0f 0f 0f |........
83 W: 0f 0f 0f 0f 0f 0f 0f 0f |........
/Zephyr-latest/tests/boards/nrf/coresight_stm/pytest/
Dtest_stm.py57 with open(f"{filepath}", errors="ignore") as autoconf:
64 logger.debug(f"{SB_CONFIG_APP_CPUPPR_RUN=}")
65 logger.debug(f"{SB_CONFIG_APP_CPUFLPR_RUN=}")
108 assert observed_str is not None, f"Timing for {check} NOT found"
114 ), f"{core}: Timing for {check} - {observed} us exceeds {threshold} us"
126 logger.exception(f'Could not kill nrfutil - {e}')
138 logger.debug(f"Using serial: {UART_PATH}")
140 if Path(f"{decoded_file_name}").exists():
145 logger.debug(f"{BUILD_DIR=}")
146 config_str = f"{STM_M_ID['app']}:{BUILD_DIR}/coresight_stm/zephyr/log_dictionary.json"
[all …]
/Zephyr-latest/tests/subsys/display/cfb/basic/src/
Dtestdata.c691 FILE *f = fopen(filename, "w"); in to_ppm() local
693 fprintf(f, "P3\n"); in to_ppm()
694 fprintf(f, "# %s\n", filename); in to_ppm()
695 fprintf(f, "%lu %lu\n", w, h); in to_ppm()
696 fprintf(f, "255\n"); in to_ppm()
699 fprintf(f, "%3d ", (buf[i] & 0xFF0000) >> 16); in to_ppm()
700 fprintf(f, "%3d ", (buf[i] & 0x00FF00) >> 8); in to_ppm()
701 fprintf(f, "%3d\n", (buf[i] & 0x0000FF) >> 0); in to_ppm()
704 fclose(f); in to_ppm()
/Zephyr-latest/tests/ztest/ztest_param/pytest/
Dtest_parameters.py11 assert "PASS - test_int_param" in output, f"Expected 'PASS - test_int_param' but got {lines}"
12 assert "PASS - test_dummy" in output, f"Expected 'PASS - test_dummy' but got {lines}"
13 …assert "PASS - test_string_param" in output, f"Expected 'PASS - test_string_param' but got {lines}"
19 assert "PASS - test_dummy" in output, f"Expected 'PASS - test_dummy' but got {lines}"
26 …assert pass_dummy_count == 2, f"Expected 2 occurrences of 'PASS - test_dummy' but found {pass_dumm…
33 …assert pass_ztest_params_count == 2, f"Expected 2 occurrences of 'TESTSUITE ztest_params succeeded…
39 …assert "TESTSUITE ztest_params succeeded" in output, f"Expected 'TESTSUITE ztest_params succeeded'…
49 … lines = shell.exec_command(f'ztest run-testcase ztest_params::test_string_param -p {test_input}')
50 assert f'Passed string:{test_input}' in lines, 'expected response not found'
/Zephyr-latest/scripts/
Dset_assignees.py60 gh_repo = gh.get_repo(f"{args.org}/{args.repo}")
63 log(f"working on https://github.com/{args.org}/{args.repo}/pull/{pr.number} : {pr.title}")
81 log(f"Too many files changed ({len(fn)}), skipping....")
86 log(f"file: {changed_file.filename}")
109 log(f"Area matches: {area_counter}")
110 log(f"labels: {labels}")
118 log(f"collab: {collab}")
122 log(f"Submitted by: {pr.user.login}")
123 log(f"candidate maintainers: {_all_maintainers}")
151 log(f"Picked assignees: {assignees} ({prop:.2f}% ownership)")
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_util.c26 int32_t e = -1, v, f = 0; in lwm2m_float_to_b32() local
46 f >>= 1; in lwm2m_float_to_b32()
49 f |= (1 << 23); in lwm2m_float_to_b32()
63 if (!f && e < 0 && v < PRECISION32) { in lwm2m_float_to_b32()
69 f |= 1 << (22 - i); in lwm2m_float_to_b32()
97 b32[1] |= (f >> 16) & 0x7F; in lwm2m_float_to_b32()
98 b32[2] = (f >> 8) & 0xFF; in lwm2m_float_to_b32()
99 b32[3] = f & 0xFF; in lwm2m_float_to_b32()
107 int64_t v, f = 0; in lwm2m_float_to_b64() local
128 f >>= 1; in lwm2m_float_to_b64()
[all …]
/Zephyr-latest/scripts/build/
Dgen_image_info.py32 content.append(f'#ifndef {filename_we}_H')
33 content.append(f'#define {filename_we}_H')
34 content.append(f'')
35 content.append(f'#define SEGMENT_NUM {len(segments)}')
36 content.append(f'#define ADJUSTED_LMA {adjusted_lma}')
44 content.append(f'')
45 content.append(f'#define SEGMENT_LMA_ADDRESS_{idx} {hex_lma_addr}')
46 content.append(f'#define SEGMENT_VMA_ADDRESS_{idx} {hex_vma_addr}')
47 content.append(f'#define SEGMENT_SIZE_{idx} {hex_size}')
49 content.append(f'')
[all …]
/Zephyr-latest/scripts/footprint/
Dtrack.py25 pathlib.Path(f'footprint_data/{version}').mkdir(exist_ok=True, parents=True)
39 f'out/{name}/{feature}/{board}',
42 f'{app}',
47 cmd += ['--', f'{options}']
55 …pathlib.Path(f'footprint_data/{version}/{name}/{feature}/{board}').mkdir(parents=True, exist_ok=Tr…
57 …shutil.copy(f'out/{name}/{feature}/{board}/ram.json', f'footprint_data/{version}/{name}/{feature}/…
58 …shutil.copy(f'out/{name}/{feature}/{board}/rom.json', f'footprint_data/{version}/{name}/{feature}/…
/Zephyr-latest/scripts/west_commands/fetchers/
D__init__.py16 importlib.import_module(f'fetchers.{fetcher_name}')
21 _logger.warning(f'The module for fetcher "{fetcher_name}" '
22 f'could not be imported ({ie}). This most likely '
33 for f in [f for f in os.listdir(fetchers_dir)]:
34 file = fetchers_dir / Path(f)

12345678910>>...28