/Zephyr-latest/scripts/gitlint/ |
D | zephyr_commit_rules.py | 1 # SPDX-License-Identifier: Apache-2.0 4 The classes below are examples of user-defined CommitRules. Commit rules are gitlint rules that 21 # A rule MUST have a human friendly name 22 name = "body-min-line-count" variable in BodyMinLineCount 24 # A rule MUST have an *unique* id, we recommend starting with UC (for User-defined Commit-rule). 28 … options_spec = [IntOption('min-line-count', 1, "Minimum body line count excluding Signed-off-by")] 31 …filtered = [x for x in commit.message.body if not x.lower().startswith("signed-off-by") and x != '… 33 min_line_count = self.options['min-line-count'].value 35 … message = "Commit message body is empty, should at least have {} line(s).".format(min_line_count) 39 # A rule MUST have a human friendly name [all …]
|
/Zephyr-latest/scripts/utils/ |
D | board_v1_to_v2.py | 12 - ``-b|--board``: The name of the board to migrate. 13 - ``-g|--group``: The group the board belongs to. This is used to group a set of 16 - ``-v|--vendor``: The vendor name. 17 - ``-s|--soc``: The SoC name. 19 In some cases, the new board name will differ from the old board name. For 20 example, the old board name may have the SoC name as a suffix, while in HWMv2, 21 this is no longer needed. In such cases, ``-n|--new-board`` needs to be 24 For boards with variants, ``--variants`` needs to be provided. 26 For out-of-tree boards, provide ``--board-root`` pointing to the custom board 30 SPDX-License-Identifier: Apache-2.0 [all …]
|
D | pinctrl_nrf_migrate.py | 4 # SPDX-License-Identifier: Apache-2.0 11 nRF-based boards using the old <signal>-pin properties to select peripheral 13 file by removing old pin-related properties replacing them with pinctrl states. 14 A board-pinctrl.dtsi file will be generated containing the configuration for 19 This script uses a basic line based parser, therefore not all valid 28 -i path/to/board.dts 29 [--no-backup] 30 [--skip-nrf-check] 31 [--header ""] 35 .. code-block:: devicetree [all …]
|
/Zephyr-latest/subsys/settings/src/ |
D | settings_priv.h | 2 * Copyright (c) 2018-2023 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 20 int settings_line_write(const char *name, const char *value, size_t val_len, 23 /* Get len of record without alignment to write-block-size */ 24 int settings_line_len_calc(const char *name, size_t val_len); 26 int settings_line_dup_check_cb(const char *name, void *val_read_cb_ctx, 29 int settings_line_load_cb(const char *name, void *val_read_cb_ctx, 32 typedef int (*line_load_cb)(const char *name, void *val_read_cb_ctx, 41 const char *name; member 48 /* in storage line contex */ [all …]
|
D | settings_line.c | 5 * SPDX-License-Identifier: Apache-2.0 24 int settings_line_write(const char *name, const char *value, size_t val_len, in settings_line_write() argument 31 /* base64 encoding size and write-block-size */ in settings_line_write() 38 rem = strlen(name); in settings_line_write() 41 len_field = settings_line_len_calc(name, val_len); in settings_line_write() 48 w_size = wbs - add; in settings_line_write() 53 memcpy(w_buf + sizeof(len_field), name, w_size); in settings_line_write() 54 name += w_size; in settings_line_write() 55 rem -= w_size; in settings_line_write() 62 return -EIO; in settings_line_write() [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | cmakecache.py | 5 # SPDX-License-Identifier: Apache-2.0 18 ---------- ------------------------------------------- 24 ---------- ------------------------------------------- 31 # expression. To be permissive here, use a non-greedy match up to 32 # the first colon (':'). This breaks if the variable name has a 35 r'''(?P<name>.*?) # name 45 # non-zero number. False if the constant is 0, OFF, NO, 47 # the suffix -NOTFOUND. Named boolean constants are 48 # case-insensitive. If the argument is not one of these 57 or val.endswith('-NOTFOUND') [all …]
|
D | size_calc.py | 5 # SPDX-License-Identifier: Apache-2.0 73 # These get copied into RAM only on non-XIP 133 print("SECTION NAME VMA LMA SIZE HEX SZ TYPE") 136 f'{v["name"]:<17} {v["virt_addr"]:#010x} {v["load_addr"]:#010x}' 165 slist.append(v["name"]) 168 def get_available_ram(self) -> int: 175 def get_available_rom(self) -> int: 192 def _check_elf_file(self) -> None: 204 def _check_is_xip(self) -> None: 212 "utf-8").strip() [all …]
|
D | harness.py | 1 # SPDX-License-Identifier: Apache-2.0 71 def trace(self) -> bool: 75 def status(self) -> TwisterStatus: 79 def status(self, value : TwisterStatus) -> None: 82 key = value.name if isinstance(value, Enum) else value 109 Get current TestCase name. 113 def translate_record(self, record: dict) -> dict: 127 def parse_record(self, line) -> re.Match: argument 130 match = self.record_pattern.search(line) 139 def process_test(self, line): argument [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/ |
D | settings.c | 4 * SPDX-License-Identifier: Apache-2.0 37 static int entry_check_and_copy(FILE *fin, FILE *fout, const char *name) in entry_check_and_copy() argument 39 char line[READ_LEN_MAX + 1]; in entry_check_and_copy() local 40 char name_tmp[strlen(name) + 2]; in entry_check_and_copy() 42 snprintk(name_tmp, sizeof(name_tmp), "%s=", name); in entry_check_and_copy() 44 while (fgets(line, sizeof(line), fin) == line) { in entry_check_and_copy() 45 if (strstr(line, name_tmp) != NULL) { in entry_check_and_copy() 49 if (fputs(line, fout) < 0) { in entry_check_and_copy() 50 return -1; in entry_check_and_copy() 61 if ((valctx->len / 2) > len) { in settings_line_read_cb() [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ |
D | data_prepare.py | 2 # coding=utf-8 9 # http://www.apache.org/licenses/LICENSE-2.0 46 def prepare_original_data(folder, name, data, file_to_read): argument 54 data_new["name"] = name 55 for idx, line in enumerate(lines): # pylint: disable=unused-variable 56 if len(line) == 3: 57 if line[2] == "-" and data_new[DATA_NAME]: 62 data_new["name"] = name 63 elif line[2] != "-": 64 data_new[DATA_NAME].append([float(i) for i in line[0:3]]) [all …]
|
/Zephyr-latest/samples/sensor/sensor_shell/pytest/ |
D | test_sensor_shell.py | 2 # SPDX-License-Identifier: Apache-2.0 15 assert any(['device name: sensor@0' in line for line in lines]), 'expected response not found' 16 assert any(['device name: sensor@1' in line for line in lines]), 'expected response not found' 25 … assert any(['channel type=31(voltage)' in line for line in lines]), 'expected response not found' 28 …assert any(['channel type=53(gauge_state_of_health)' in line for line in lines]), 'expected respon… 31 # for-loop in `parse_named_int()` will go through everything 33 …assert any(['channel type=59(gauge_desired_charging_current)' in line for line in lines]), 'expect… 42 …assert any(['sensor@0(channel=co2, attr=sampling_frequency)' in line for line in lines]), 'expecte… 45 …assert any(['sensor@1(channel=gauge_state_of_health, attr=slope_th)' in line for line in lines]), … 55 assert any([expected_line in line for line in lines]), 'expected response not found' [all …]
|
/Zephyr-latest/scripts/west_commands/ |
D | zcmake.py | 3 # SPDX-License-Identifier: Apache-2.0 26 '''Name of the default CMake generator.''' 78 :param build_directory: runs "cmake --build build_directory" 80 these come after "--build <build_directory>" 81 on the command line. 83 Any additional keyword arguments are passed as-is to run_cmake(). 86 return run_cmake(['--build', build_directory] + extra_args, **kwargs) 99 alpha_under = re.compile('[A-Za-z_]') 100 alpha_num_under = re.compile('[A-Za-z0-9_]') 120 ---------- ------------------------------------------- [all …]
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_xmc4xxx.c | 4 * SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/dt-bindings/interrupt-controller/infineon-xmc4xxx-intc.h> 24 /* unset on a negative edge (or vice-versa depending on the configuration). The value of */ 29 /* dts/arm/infineon/xmc4xxx_x_x-intc.dtsi. The configurations are stored in the opaque array */ 31 /* dt-bindings/interrupt-controller/infineon-xmc4xxx-intc.h. */ 34 /* if fn is NULL it implies the interrupt line has not been allocated */ 60 struct intc_xmc4xxx_data *data = dev->data; in intc_xmc4xxx_gpio_enable_interrupt() 61 const struct intc_xmc4xxx_config *config = dev->config; in intc_xmc4xxx_gpio_enable_interrupt() 62 int ret = -ENOTSUP; in intc_xmc4xxx_gpio_enable_interrupt() 69 int port_map, pin_map, line, eru_src, eru_ch; in intc_xmc4xxx_gpio_enable_interrupt() local [all …]
|
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/ |
D | gd32_exti.h | 4 * SPDX-License-Identifier: Apache-2.0 15 * @name EXTI trigger modes. 32 typedef void (*gd32_exti_cb_t)(uint8_t line, void *user); 35 * @brief Enable EXTI interrupt for the given line. 37 * @param line EXTI line. 39 void gd32_exti_enable(uint8_t line); 42 * @brief Disable EXTI interrupt for the given line. 44 * @param line EXTI line. 46 void gd32_exti_disable(uint8_t line); 49 * @brief Configure EXTI interrupt trigger mode for the given line. [all …]
|
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/ |
D | reel_board.c | 5 * SPDX-License-Identifier: Apache-2.0 78 uint8_t line[fonts[FONT_SMALL].columns + 1]; in print_line() local 84 memcpy(line, text, len); in print_line() 85 line[len] = '\0'; in print_line() 88 pad = (fonts[font_size].columns - len) / 2U; in print_line() 95 if (cfb_print(epd_dev, line, font_width * pad, font_height * row)) { in print_line() 120 /* If we got more characters than fits a line, and a space was in get_len() 124 return space - text; in get_len() 168 char name[9]; member 174 [0 ... (STAT_COUNT - 1)] = { [all …]
|
/Zephyr-latest/scripts/ci/ |
D | check_compliance.py | 5 # SPDX-License-Identifier: Apache-2.0 57 f"{cp.stdout.decode('utf-8')}\n" 59 f"{cp.stderr.decode('utf-8')}\n") 61 return cp.stdout.decode("utf-8").rstrip() 70 return git('rev-list', 71 f'--max-count={-1 if "." in refspec else 1}', refspec).split() 74 filter_arg = (f'--diff-filter={filter}',) if filter else () 75 paths_arg = ('--', *paths) if paths else () 76 out = git('diff', '--name-only', *filter_arg, COMMIT_RANGE, *paths_arg) 86 self, severity, title, file, line=None, col=None, desc="", end_line=None, end_col=None argument [all …]
|
/Zephyr-latest/scripts/kconfig/ |
D | diffconfig | 3 # SPDX-License-Identifier: Apache-2.0 5 # diffconfig - a tool to compare .config files. 15 print("""Usage: diffconfig [-h] [-m] [<config1> <config2>] 23 Changed items show the old and new values on a single line. 25 If -m is specified, then output will be in "merge" style, which has the 31 $ diffconfig .config config-with-some-changes 32 -EXT2_FS_XATTR n 33 -EXT2_FS_XIP n 34 CRAMFS n -> y 35 EXT2_FS y -> n [all …]
|
/Zephyr-latest/subsys/shell/backends/ |
D | Kconfig.backends | 4 # SPDX-License-Identifier: Apache-2.0 15 DT_CHOSEN_Z_SHELL_UART := zephyr,shell-uart 36 string "Displayed prompt name" 39 Displayed prompt name for UART backend. If prompt is set, the shell will 145 default-timeout = 100 148 default-size = 512 200 string "Displayed prompt name" 203 Displayed prompt name for RTT backend. If prompt is set, the shell will 211 Select index of up-buffer used for shell output, by default it uses 212 terminal up-buffer and its settings. [all …]
|
/Zephyr-latest/subsys/testsuite/ztest/src/ |
D | ztest_posix.c | 4 * SPDX-License-Identifier: Apache-2.0 9 #include "cmdline.h" /* native_sim command line options header */ 31 "Name of tests to run. Comma separated list formatted as " in add_test_filter_option() 48 * line. 70 * @param value - Sets list_tests to value 78 * @brief Helper function to get command line argument for listing tests 89 * @brief Helper function to get command line test arguments 101 * @brief Lists registered unit tests in this binary, one per line 115 while ((test = z_ztest_get_next_test(ptr->name, test)) != NULL) { in z_ztest_list_tests() 116 TC_PRINT("%s::%s\n", test->test_suite_name, test->name); in z_ztest_list_tests() [all …]
|
/Zephyr-latest/samples/boards/bbc/microbit/line_follower_robot/ |
D | sample.yaml | 2 name: BBC micro:bit Line follower robot 7 - microbit 8 - line-follower 9 - robot 10 - car
|
D | README.rst | 1 .. zephyr:code-sample:: bbc_microbit_line_follower_robot 2 :name: Line following robot 4 Implement a line following robot using a BBC micro:bit board and robot chassis. 9 This sample controls a stand-alone line-following DFRobot Maqueen 16 chassis (ROB0148) <https://www.dfrobot.com/product-1783.html>`_ 17 with a BBC micro:bit board. Use black tape to create a line track 20 and put it on the black line track. 27 .. zephyr-app-commands:: 28 :zephyr-app: samples/boards/bbc/microbit/line_follower_robot 36 The sample program controls the robot to follow a line track and does
|
/Zephyr-latest/samples/subsys/console/getline/ |
D | README.rst | 1 .. zephyr:code-sample:: console_getline 2 :name: console_getline() 4 Use console_getline() to read an input line from the console. 10 Similar to the well-known ANSI C gets() and fgets() functions, 12 line or blocks waiting for one. Using this function, it should be fairly 14 console input line by line. The sample also allows to see details of how 15 a line is returned by the function. 18 :zephyr:code-sample:`console_getchar`. 32 .. zephyr-app-commands:: 33 :zephyr-app: samples/subsys/console/getline [all …]
|
/Zephyr-latest/include/zephyr/dt-bindings/flash_controller/ |
D | xspi.h | 4 * SPDX-License-Identifier: Apache-2.0 10 * @name XSPI definition for the xSPI peripherals 15 /* XSPI mode operating on 1 line, 2 lines, 4 lines or 8 lines */ 16 /* 1 Cmd Line, 1 Address Line and 1 Data Line */
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/ |
D | shell.py | 3 # SPDX-License-Identifier: Apache-2.0 27 ) -> None: 32 def wait_for_prompt(self, timeout: float | None = None) -> bool: 44 line = self._device.readline(timeout=0.5, print_output=False) 48 if self.prompt in line: 55 ) -> list[str]: 58 is extended by double enter sings - first one to execute this command 69 … # wait for device command print - it should be done immediately after sending command to device 83 def get_filtered_output(self, command_lines: list[str]) -> list[str]: 94 >>> 'Zephyr version 3.6.0', # keep this line [all …]
|
/Zephyr-latest/scripts/native_simulator/native/src/include/ |
D | nsi_cmdline.h | 5 * SPDX-License-Identifier: Apache-2.0 10 * @brief API to the native simulator - native command line parsing utilities 13 * and BabbleSim's command line options to enable to reuse components between them. 39 * Structure defining each command line option 52 /* Option name we search for: --<option> */ 55 * Name of the option destination in the help messages: 56 * "--<option>=<name>" 58 char *name; member
|