/Zephyr-latest/scripts/utils/ |
D | gen_util_macros.py | 24 file.write("/**\n") 25 file.write(" * @cond INTERNAL_HIDDEN\n") 26 file.write(" */\n") 30 file.write("/**\n") 31 file.write(" * INTERNAL_HIDDEN @endcond\n") 32 file.write(" */\n") 38 file.write("\n") 39 file.write("#ifndef ZEPHYR_INCLUDE_SYS_UTIL_LOOPS_H_\n") 40 …file.write("#error \"This header should not be used directly, please include util_loops.h instead\… 41 file.write("#endif /* ZEPHYR_INCLUDE_SYS_UTIL_LOOPS_H_ */\n") [all …]
|
/Zephyr-latest/scripts/west_commands/zspdx/ |
D | writer.py | 29 …f.write(f"Relationship: {_normalize_spdx_name(rln.refA)} {rln.rlnType} {_normalize_spdx_name(rln.r… 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") 58 f.write("\n") 76 f.write(f"""##### Package: {spdx_normalized_name} [all …]
|
/Zephyr-latest/scripts/ci/coverage/ |
D | coverage_analysis.py | 300 outfile.write(json_object) 350 worksheet.write(row,col,"Components",header_format) 351 worksheet.write(row,col+1,"TestSuites",header_format) 352 worksheet.write(row,col+2,"Runnable",header_format) 353 worksheet.write(row,col+3,"Build only",header_format) 354 worksheet.write(row,col+4,"Simulators only",header_format) 355 worksheet.write(row,col+5,"Hardware only",header_format) 356 worksheet.write(row,col+6,"Mixed",header_format) 357 worksheet.write(row,col+7,"Coverage [%]",header_format) 358 worksheet.write(row,col+8,"Total Functions",header_format) [all …]
|
/Zephyr-latest/arch/xtensa/core/ |
D | gen_zsr.py | 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") 98 f.write(f"# define ZSR_EXTRA{i - len(NEEDED)}_STR \"{regs[i]}\"\n") 101 f.write(f"# define ZSR_RFI_LEVEL {maxint}\n") 102 f.write(f"# define ZSR_EPC EPC{maxint}\n") 103 f.write(f"# define ZSR_EPS EPS{maxint}\n") [all …]
|
/Zephyr-latest/arch/x86/zefi/ |
D | zefi.py | 75 cf.write("/* GENERATED CODE. DO NOT EDIT. */\n\n") 77 cf.write("/* Sizes and offsets specified in 4-byte units.\n") 78 cf.write(" * All addresses 4-byte aligned.\n") 79 cf.write(" */\n") 81 cf.write("struct data_seg { uint64_t addr; uint32_t sz; uint32_t off; };\n\n") 83 cf.write("static struct data_seg zefi_dsegs[] = {\n") 85 cf.write(" { 0x%x, %d, %d },\n" 87 cf.write("};\n\n") 89 cf.write("struct zero_seg { uint64_t addr; uint32_t sz; };\n\n") 91 cf.write("static struct zero_seg zefi_zsegs[] = {\n") [all …]
|
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/creds/ |
D | convert_keys.py | 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")
|
/Zephyr-latest/scripts/build/ |
D | gen_isr_tables_parser_carrays.py | 183 fp.write(self.source_assembly_header) 185 fp.write("void __irq_vector_table __attribute__((naked)) _irq_vector_table(void) {\n") 197 fp.write("\t__asm(ARCH_IRQ_VECTOR_JUMP_CODE({}));\n".format(func_as_string)) 198 fp.write("}\n") 201 fp.write("uintptr_t __irq_vector_table _irq_vector_table[%d] = {\n" % self.__nv) 209 fp.write("\t{},\n".format(func)) 211 fp.write("\t((uintptr_t)&{}),\n".format(func)) 213 fp.write("};\n") 216 fp.write("struct z_shared_isr_table_entry __shared_sw_isr_table" 228 fp.write("\t{ },\n") [all …]
|
D | gen_kobject_list.py | 153 sys.stdout.write(scr + ": " + text + "\n") 774 fp.write(header) 776 fp.write("static struct k_mutex kernel_mutexes[%d] = {\n" 779 fp.write("Z_MUTEX_INITIALIZER(kernel_mutexes[%d])" % i) 781 fp.write(", ") 782 fp.write("};\n") 785 fp.write("static struct z_futex_data futex_data[%d] = {\n" 788 fp.write("Z_FUTEX_DATA_INITIALIZER(futex_data[%d])" % i) 790 fp.write(", ") 791 fp.write("};\n") [all …]
|
D | gen_isr_tables_parser_local.py | 264 fp.write(self.__isr_spurious_entry(i) + '\n') 267 fp.write(self.__isr_shared_entry(i) + '\n') 269 fp.write('/* ISR: {} implemented in app in "{}" section. */\n'.format( 275 fp.write(self.__irq_spurious_entry(i) + '\n') 277 fp.write('/* ISR: {} implemented in app. */\n'.format(i)) 280 fp.write("extern struct z_shared_isr_table_entry " 289 fp.write('static Z_DECL_ALIGN(struct _isr_table_entry)\n' + 298 fp.write('/* Shared isr {} entry {} implemented in "{}" section*/\n'.format( 302 fp.write(('static size_t Z_GENERIC_SECTION({}) __used\n' + 310 fp.write(self.source_header) [all …]
|
D | gen_iter_sections.py | 22 fp.write(f"ITERABLE_SECTION_ROM({item}, {alignment})\n") 28 fp.write( 34 fp.write( 41 fp.write('set(DEVICE_API_SECTIONS "${sections}" CACHE INTERNAL "")\n') 42 fp.write('set(DEVICE_API_SECTION_SETTINGS "${section_settings}" CACHE INTERNAL "")\n')
|
D | process_gperf.py | 31 sys.stdout.write(os.path.basename(sys.argv[0]) + ": " + text + "\n") 39 sys.stdout.write( 82 fp.write(line) 88 fp.write("static inline " + line) 122 fp.write(" if (str == s)\n") 132 fp.write(line)
|
/Zephyr-latest/soc/intel/intel_ish/utils/ |
D | build_ish_firmware.py | 69 f.write(gen_manifest(b'ISHM', b'ISH_KERN', HEADER_SIZE, kern_rdup_pg_size)) 75 f.write(gen_manifest(b'ISHM', b'AON_TASK', 80 f.write(gen_manifest(b'ISHE', b'', 0, 0)) 84 f.write(b'\x00' * (HEADER_SIZE - (MANIFEST_ENTRY_SIZE * 3))) 86 f.write(b'\x00' * (HEADER_SIZE - (MANIFEST_ENTRY_SIZE * 2))) 90 f.write(in_file.read()) 92 f.write(b'\x00' * (kern_rdup_pg_size * PAGE_SIZE - kernel_size)) 97 f.write(in_file.read()) 99 f.write(b'\x00' * (aon_rdup_pg_size * PAGE_SIZE - aon_size))
|
/Zephyr-latest/scripts/ruff/ |
D | gen_format_exclude.py | 13 sys.stdout.write("[format]\n") 14 sys.stdout.write("exclude = [\n") 17 sys.stdout.write(f' "./{line[16:-1]}",\n') 18 sys.stdout.write("]\n")
|
D | gen_lint_exclude.py | 31 sys.stdout.write("[lint.per-file-ignores]\n") 39 sys.stdout.write(f'"./{path.relative_to(Path.cwd())}" = [\n') 41 sys.stdout.write(f' "{r.code}",\t# {r.url}\n'.expandtabs()) 42 sys.stdout.write("]\n")
|
/Zephyr-latest/tests/net/socket/socketpair/src/ |
D | block.c | 11 bool write; member 30 if (ctx.write) { in work_handler() 45 LOG_DBG("%sing 1 byte %s fd %d", ctx.write ? "read" : "writ", in work_handler() 46 ctx.write ? "from" : "to", ctx.fd); in work_handler() 47 if (ctx.write) { in work_handler() 53 LOG_DBG("%s() failed: %d", ctx.write ? "recv" : "send", errno); in work_handler() 55 LOG_DBG("%s 1 byte", ctx.write ? "read" : "wrote"); in work_handler() 69 ctx.write = true; in ZTEST_F() 110 ctx.write = false; in ZTEST_F()
|
/Zephyr-latest/samples/drivers/soc_flash_nrf/ |
D | README.rst | 16 Within the sample, user may observe how read/write/erase operations 46 Test 2: Flash write (word array 1) 47 Attempted to write 1122 at 0x82000 51 Attempted to write aabb at 0x82004 55 Attempted to write abcd at 0x82008 59 Attempted to write 1234 at 0x8200c 67 Test 4: Flash write (word array 2) 68 Attempted to write 1234 at 0x82000 72 Attempted to write aabb at 0x82004 76 Attempted to write abcd at 0x82008 [all …]
|
/Zephyr-latest/subsys/logging/ |
D | Kconfig.filtering | 22 - 0 OFF, do not write by default 23 - 1 ERROR, default to only write LOG_LEVEL_ERR 24 - 2 WARNING, default to write LOG_LEVEL_WRN 25 - 3 INFO, default to write LOG_LEVEL_INFO 26 - 4 DEBUG, default to write LOG_LEVEL_DBG 40 - 1 ERROR, override to write LOG_LEVEL_ERR 41 - 2 WARNING, override to write LOG_LEVEL_WRN 42 - 3 INFO, override to write LOG_LEVEL_INFO 43 - 4 DEBUG, override to write LOG_LEVEL_DBG
|
/Zephyr-latest/soc/nuvoton/npcx/common/ecst/ |
D | ecst.py | 229 output_file.write(FW_HDR_ANCHOR.to_bytes(4, "little")) 247 output_file.write(FW_HDR_EXT_ANCHOR_ENABLE.to_bytes(2, "little")) 250 output_file.write(FW_HDR_EXT_ANCHOR_DISABLE.to_bytes(2, "little")) 336 output_file.write(spi_max_clock_to_write.to_bytes(1, "little")) 340 output_file.write(spi_max_clock_to_write.to_bytes(1, "little")) 344 output_file.write(spi_max_clock_to_write.to_bytes(1, "little")) 348 output_file.write(spi_max_clock_to_write.to_bytes(1, "little")) 352 output_file.write(spi_max_clock_to_write.to_bytes(1, "little")) 395 output_file.write(spi_read_mode_to_write.to_bytes(1, "little")) 398 output_file.write(spi_read_mode_to_write.to_bytes(1, "little")) [all …]
|
/Zephyr-latest/arch/x86/ |
D | gen_gdt.py | 57 sys.stdout.write(os.path.basename(sys.argv[0]) + ": " + text + "\n") 205 output_fp.write(create_gdt_pseudo_desc(gdt_base, num_entries * 8)) 208 output_fp.write(create_code_data_entry(0, 0xFFFFF, 0, 212 output_fp.write(create_code_data_entry(0, 0xFFFFF, 0, 220 output_fp.write(create_tss_entry(main_tss, 0x67, 0)) 223 output_fp.write(create_tss_entry(df_tss, 0x67, 0)) 227 output_fp.write(create_code_data_entry(0, 0xFFFFF, 3, 231 output_fp.write(create_code_data_entry(0, 0xFFFFF, 3, 240 output_fp.write(create_code_data_entry(0, 0xFFFFF, 3,
|
/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_nrf.c | 113 uint32_t write = NO_WRITE; in pinctrl_configure_pins() local 131 write = 1U; in pinctrl_configure_pins() 142 write = 1U; in pinctrl_configure_pins() 155 write = 0U; in pinctrl_configure_pins() 161 write = 0U; in pinctrl_configure_pins() 220 write = 0U; in pinctrl_configure_pins() 231 write = 0U; in pinctrl_configure_pins() 247 write = 0U; in pinctrl_configure_pins() 253 write = 0U; in pinctrl_configure_pins() 261 write = 0U; in pinctrl_configure_pins() [all …]
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | test_printouts.py | 292 sys.stdout.write(out) 293 sys.stderr.write(err) 328 sys.stdout.write(out) 329 sys.stderr.write(err) 364 sys.stdout.write(out) 365 sys.stderr.write(err) 391 sys.stdout.write(out) 392 sys.stderr.write(err) 421 sys.stdout.write(out) 422 sys.stderr.write(err) [all …]
|
/Zephyr-latest/tests/net/socket/udp/ |
D | generate-c-string.py | 21 fp.write('"') 23 fp.write(chunks[:args.size]) 24 fp.write('"')
|
/Zephyr-latest/samples/subsys/zbus/remote_mock/ |
D | remote_mock.py | 36 ser.write(b'$') 37 ser.write(b'\x02') # idx 38 ser.write(b'\x01') 39 ser.write(b'*')
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | mipi_dbi.rst | 17 #. 9 write clocks per byte, final bit is command/data selection bit 19 #. Same as above, but 16 write clocks per byte 21 #. 8 write clocks per byte. Command/data selected via GPIO pin 23 Currently, the API does not support Type C controllers with 16 write clocks
|
/Zephyr-latest/soc/nuvoton/npcm/common/esiost/ |
D | esiost.py | 170 output_file.write(anchor_hex) 243 output_file.write(start_flash_addr.to_bytes(4, "little")) 247 output_file.write(end_flash_addr.to_bytes(4, "little")) 251 output_file.write(fw_load_addr.to_bytes(4, "little")) 300 output_file.write(fw_entry_pt.to_bytes(4, "little")) 335 output_file.write(fw_length.to_bytes(4, "big")) 361 output_file.write(hash_data) 378 output_file.write(FW_HDR_SEG1_START.to_bytes(4, "little")) 380 output_file.write(FW_HDR_SEG1_SIZE.to_bytes(4, "little")) 384 output_file.write(FW_HDR_SEG2_START.to_bytes(4, "little")) [all …]
|