/Zephyr-latest/scripts/build/ |
D | process_gperf.py | 5 # SPDX-License-Identifier: Apache-2.0 8 gperf C file post-processor 15 We are exclusively working with 4-byte pointer values. This script adjusts 26 # --- debug stuff --- 28 def debug(text): 34 def error(text): 38 def warn(text): 47 def reformat_str(match_obj): 51 addr_str = addr_str[1:-1] 67 # Char value that had to be escaped by C string rules [all …]
|
D | gen_strsignal_table.py | 5 # SPDX-License-Identifier: Apache-2.0 12 def front_matter(): 22 def gen_strsignal_table(input, output): 32 pat = r'^#define[\s]+(SIG[A-Z_]*)[\s]+([1-9][0-9]*)[\s]+/\*\*<[\s]+(.*)[\s]+\*/[\s]*$' 59 f'static const char *const strsignal_list[{highest_signo + 1}] = {{', file=outf) 66 def parse_args(): 69 '-i', 70 '--input', 75 '-o', 76 '--output', [all …]
|
D | gen_strerror_table.py | 5 # SPDX-License-Identifier: Apache-2.0 12 def front_matter(sys_nerr): 27 def gen_strerror_table(input, output): 37 pat = r'^#define[\s]+(E[A-Z_]*)[\s]+([1-9][0-9]*)[\s]+/\*\*<[\s]+(.*)[\s]+\*/[\s]*$' 64 f'static const char *const sys_errlist[sys_nerr] = {{', file=outf) 81 def parse_args(): 84 '-i', 85 '--input', 90 '-o', 91 '--output', [all …]
|
D | gen_relocate_app.py | 5 # SPDX-License-Identifier: Apache-2.0 25 python3 gen_relocate_app.py -i input_string -o generated_linker -c generated_code 29 - If the memory is like SRAM1/SRAM2/CCD/AON then place full object in 31 - If the memory type is appended with _DATA / _TEXT/ _RODATA/ _BSS only the 34 - COPY/NOCOPY defines whether the script should generate the relocation code in 36 - NOKEEP will suppress the default behavior of marking every relocated symbol 69 def __str__(self): 73 def for_section_named(cls, name: str): 153 __{0}_{1}_reloc_size = __{0}_{1}_reloc_end - __{0}_{1}_reloc_start; 171 __{0}_{1}_reloc_size = __{0}_{1}_reloc_end - __{0}_{1}_reloc_start; [all …]
|
D | gen_cfb_font_header.py | 5 # SPDX-License-Identifier: Apache-2.0 17 def generate_element(image, charcode): 27 char = " ({:c})".format(charcode) 29 char = "" 31 args.output.write("""\t/* {:d}{} */\n\t{{\n""".format(charcode, char)) 66 value = value[::-1] 71 def extract_font_glyphs(): 83 fw = size[2] - size[0] # right - left 84 fh = size[3] - size[1] # bottom - top 101 raise Exception('text width {} mismatch with -x {}'.format(width, args.width)) [all …]
|
D | uf2conv.py | 3 # SPDX-License-Identifier: MIT 5 # pylint: skip-file 27 def is_uf2(buf): 31 def is_hex(buf): 33 w = buf[0:30].decode("utf-8") 36 if w[0] == ':' and re.match(rb"^[:0-9a-fA-F\r\n]+$", buf): 40 def convert_from_uf2(buf): 58 # NO-flash flag set; skip block 71 padding = newaddr - curraddr 77 assert False, "Non-word padding size at " + ptr [all …]
|
D | gen_isr_tables_parser_local.py | 7 # SPDX-License-Identifier: Apache-2.0 14 /* AUTO-GENERATED by gen_isr_tables.py, do not edit! */ 43 def __init__(self, intlist_data, config, log): 48 - intlist_data: The binnary data from intlist section 49 - config: The configuration object 50 - log: The logging object, has to have error and debug methods 60 def __read_intlist(self, intlist_data): 65 uint32_t num_vectors; <- typically CONFIG_NUM_IRQS 66 uint8_t stream[]; <- the stream with the interrupt data 77 const char sname[]; [all …]
|
D | gen_kobject_list.py | 5 # SPDX-License-Identifier: Apache-2.0 14 - That the memory address points to a kernel object 16 - The kernel object is of the expected type for the API being invoked 18 - The kernel object is of the expected initialization state 20 - The calling thread has sufficient permissions on the object 33 - A gperf script to generate the hash table mapping kernel object memory 35 object type, initialization state, and any object-specific data. 37 - A header file containing generated macros for validating driver instances 40 - A code fragment included by kernel.h with one enum constant for 43 - The inner cases of a switch/case C statement, included by [all …]
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/ |
D | storage.c | 5 * SPDX-License-Identifier: Apache-2.0 22 settings_save_one("ps/gdtt", &ctl->tt, sizeof(ctl->tt)); in save_gen_def_trans_time_state() 27 settings_save_one("ps/gpo", &ctl->onpowerup, sizeof(ctl->onpowerup)); in save_gen_onpowerup_state() 29 if (ctl->onpowerup == 0x02) { in save_gen_onpowerup_state() 36 settings_save_one("ps/ld", &ctl->light->def, sizeof(ctl->light->def)); in save_def_states() 37 settings_save_one("ps/td", &ctl->temp->def, sizeof(ctl->temp->def)); in save_def_states() 38 settings_save_one("ps/dd", &ctl->duv->def, sizeof(ctl->duv->def)); in save_def_states() 43 settings_save_one("ps/ll", &ctl->light->last, sizeof(ctl->light->last)); in save_lightness_last_state() 50 settings_save_one("ps/llt", &ctl->light->target, in save_last_target_states() 51 sizeof(ctl->light->target)); in save_last_target_states() [all …]
|
/Zephyr-latest/scripts/ |
D | gen_gcov_files.py | 5 # SPDX-License-Identifier: Apache-2.0 17 def retrieve_data(input_file): 35 # Remove the trailing new line char 36 hex_dump = line.split("<")[1][:-1] 44 def create_gcda_files(extracted_coverage_info): 53 filename = filename[:-4] + "gcno" 64 def parse_args(): 69 parser.add_argument("-i", "--input", required=True, 71 parser.add_argument("-v", "--verbose", action="count", default=0, 76 def main():
|
/Zephyr-latest/dts/bindings/spi/ |
D | nordic,nrf-spis.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nordic,nrf-spis" 8 include: ["nordic,nrf-spi-common.yaml", "memory-region.yaml"] 11 def-char:
|
D | nxp,lpc-spi.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nxp,lpc-spi" 8 include: [spi-controller.yaml, "nxp,lpc-flexcomm.yaml"] 11 pre-delay: 17 post-delay: 23 frame-delay: 30 transfer-delay: 36 def-char:
|
/Zephyr-latest/scripts/logging/dictionary/ |
D | database_gen.py | 5 # SPDX-License-Identifier: Apache-2.0 8 Dictionary-based Logging Database Generator 11 file for dictionary-based logging. This database is used together 59 DT_LOCATION_REGEX = re.compile(r"\(DW_OP_addr: ([0-9a-f]+)") 62 # Format string for pointers (default for 32-bit pointers) 69 'iso-8859-1', 80 def parse_args(): 85 argparser.add_argument("--build", help="Build ID") 86 argparser.add_argument("--build-header", 88 argparser.add_argument("--debug", action="store_true", [all …]
|
/Zephyr-latest/soc/nuvoton/npcx/common/ecst/ |
D | ecst_args.py | 5 # SPDX-License-Identifier: Apache-2.0 14 INVALID_INPUT = -1 100 def __init__(self): 110 def _populate_chip_fields(self): 124 def _populate_args(self, argument_list): 179 def _create_parser(arg_list): 180 """create argument parser according to pre-defined arguments 187 parser.add_argument("-i", nargs='?', dest="input") 188 parser.add_argument("-o", nargs='?', dest="output") 189 parser.add_argument("-chip", dest="chip") [all …]
|
/Zephyr-latest/arch/x86/ |
D | gen_idt.py | 5 # SPDX-License-Identifier: Apache-2.0 14 which is a link of the Zephyr kernel without various build-time 50 def debug(text): 56 def error(text): 64 def create_irq_gate(handler, dpl): 66 gate_type = 0xE # 32-bit interrupt gate 77 def create_task_gate(tss, dpl): 79 gate_type = 0x5 # 32-bit task gate 86 def create_idt_binary(idt_config, filename): 106 def create_irq_vec_map_binary(irq_vec_map, filename): [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | jobserver.py | 2 # SPDX-License-Identifier: Apache-2.0 22 def __init__(self, release_func, *args, **kwargs): 27 def __enter__(self): 30 def __exit__(self, exc_type, exc_value, traceback): 38 def get_job(self): 43 def env(): 48 def pass_fds(): 52 def popen(self, argv, **kwargs): 76 def __init__(self, inheritable_pipe, jobs, internal_jobs=0, makeflags=None): 100 def __del__(self): [all …]
|
D | coverage.py | 3 # Copyright (c) 2018-2022 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 30 def __init__(self): 36 def factory(tool, jobs=None): 49 def retrieve_gcov_data(input_file): 71 # Remove the trailing new line char 72 hex_dump = sp[1][:-1] 85 def merge_hexdumps(self, hexdumps): 100 # Iteratively call gcov-tool (not gcov) to merge the files 101 merge_tool = self.gcov_tool + '-tool' [all …]
|
/Zephyr-latest/samples/bluetooth/hci_spi/boards/ |
D | nrf51dk_nrf51822.overlay | 4 * SPDX-License-Identifier: Apache-2.0 19 compatible = "nordic,nrf-spis"; 21 def-char = <0x00>; 22 pinctrl-0 = <&spi1_default_alt>; 23 /delete-property/ pinctrl-1; 24 pinctrl-names = "default"; 26 bt-hci@0 { 27 compatible = "zephyr,bt-hci-spi-slave"; 29 irq-gpios = <&gpio0 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
|
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/ |
D | dtlib.py | 2 # SPDX-License-Identifier: BSD-3-Clause 10 The top-level entry point of the library is the DT class. DT.__init__() takes a 30 "Exception raised for devicetree-related errors" 34 Represents a node in the devicetree ('node-name { ... };'). 62 stored in big-endian format. 88 def __init__(self, name: str, parent: Optional['Node'], dt: 'DT'): 107 for char in name: 108 if char not in _nodename_chars: 109 dt._parse_error(f"{self.path}: bad character '{char}' " 113 def name(self) -> str: [all …]
|
/Zephyr-latest/boards/96boards/carbon/ |
D | 96b_carbon_nrf51822.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include "96b_carbon_nrf51822-pinctrl.dtsi" 17 zephyr,shell-uart = &uart0; 18 zephyr,bt-mon-uart = &uart0; 38 pinctrl-0 = <&i2c0_default>; 39 pinctrl-1 = <&i2c0_sleep>; 40 pinctrl-names = "default", "sleep"; 44 current-speed = <115200>; 46 pinctrl-0 = <&uart0_default>; [all …]
|
/Zephyr-latest/tests/subsys/logging/dictionary/pytest/ |
D | test_logging_dictionary.py | 4 # SPDX-License-Identifier: Apache-2.0 23 def process_logs(dut: DeviceAdapter, build_dir): 43 # timeout earlier with per-test timeout. 44 handler_output = dut.readlines_until(regex = '.*##ZLOGV1##[0-9]+', timeout = 600.0) 54 with open(encoded_log_file, 'w', encoding='utf-8') as fp: 58 cmd = [parser_script, '--hex', dictionary_json, encoded_log_file] 70 def expected_regex_common(): 77 re.compile(r'.*[*][*][*] Booting Zephyr OS build [0-9a-z.-]+'), 79 re.compile(r'[\s]+Hello World! [\w-]+'), 81 re.compile(r'[\s]+[\[][0-9,:\. ]+[\]] <err> hello_world: error string'), [all …]
|
/Zephyr-latest/tests/drivers/spi/spi_controller_peripheral/boards/ |
D | nrf52840dk_nrf52840.overlay | 4 * SPDX-License-Identifier: Apache-2.0 21 low-power-enable; 40 low-power-enable; 48 pinctrl-0 = <&spi3_default_alt>; 49 pinctrl-1 = <&spi3_sleep_alt>; 50 pinctrl-names = "default", "sleep"; 51 overrun-character = <0x00>; 52 cs-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; 53 zephyr,pm-device-runtime-auto; 54 dut_spi_dt: test-spi-dev@0 { [all …]
|
D | nrf54l15dk_nrf54l15_cpuapp.overlay | 4 * SPDX-License-Identifier: Apache-2.0 21 low-power-enable; 40 low-power-enable; 52 pinctrl-0 = <&spi22_default_alt>; 53 pinctrl-1 = <&spi22_sleep_alt>; 54 pinctrl-names = "default", "sleep"; 55 overrun-character = <0x00>; 56 cs-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; 57 zephyr,pm-device-runtime-auto; 58 dut_spi_dt: test-spi-dev@0 { [all …]
|
/Zephyr-latest/tests/drivers/spi/spi_error_cases/boards/ |
D | nrf52840dk_nrf52840.overlay | 4 * SPDX-License-Identifier: Apache-2.0 21 low-power-enable; 40 low-power-enable; 48 pinctrl-0 = <&spi3_default_alt>; 49 pinctrl-1 = <&spi3_sleep_alt>; 50 pinctrl-names = "default", "sleep"; 51 overrun-character = <0x00>; 52 cs-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; 53 dut_spi_dt: test-spi-dev@0 { 54 compatible = "vnd,spi-device"; [all …]
|
D | nrf54h20dk_nrf54h20_common.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 21 low-power-enable; 40 low-power-enable; 55 compatible = "nordic,nrf-spim"; 57 pinctrl-0 = <&spi130_default_alt>; 58 pinctrl-1 = <&spi130_sleep_alt>; 59 pinctrl-names = "default", "sleep"; 60 overrun-character = <0x00>; 61 cs-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 62 dut_spi_dt: test-spi-dev@0 { [all …]
|