/Zephyr-latest/samples/modules/tflite-micro/magic_wand/renode/ |
D | litex-vexriscv-tflite.robot | 2 # SPDX-License-Identifier: Apache-2.0 7 ... Execute Command include @${CURDIR}/LiteX_I2C_Zephyr.cs 14 Wait For Line On Uart RING: 24 Wait For Line On Uart ${SPACE*10}* 25 Wait For Line On Uart ${SPACE*7}*${SPACE*5}* 26 Wait For Line On Uart ${SPACE*5}*${SPACE*9}* 27 Wait For Line On Uart ${SPACE*4}*${SPACE*11}* 28 Wait For Line On Uart ${SPACE*5}*${SPACE*9}* 29 Wait For Line On Uart ${SPACE*7}*${SPACE*5}* 30 Wait For Line On Uart ${SPACE*10}* [all …]
|
/Zephyr-latest/samples/sensor/sensor_shell/pytest/ |
D | test_sensor_shell.py | 2 # SPDX-License-Identifier: Apache-2.0 12 logger.info('send "sensor info" command') 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' 22 logger.info('send "sensor get" command') 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… 39 logger.info('send "sensor attr_get" command') [all …]
|
/Zephyr-latest/dts/bindings/auxdisplay/ |
D | hit,hd44780.yaml | 4 # SPDX-License-Identifier: Apache-2.0 11 include: [auxdisplay-device.yaml] 17 description: Operating mode of display, 8-bit or 4 for 4-bit mode 19 - 4 20 - 8 22 register-select-gpios: 23 type: phandle-array 27 read-write-gpios: 28 type: phandle-array 31 enable-gpios: [all …]
|
/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: 34 Send every 0.5 second "enter" command to the device until shell prompt 44 line = self._device.readline(timeout=0.5, print_output=False) 48 if self.prompt in line: 54 self, command: str, timeout: float | None = None, print_output: bool = True 55 ) -> list[str]: 57 Send shell command to a device and return response. Passed command 58 is extended by double enter sings - first one to execute this command [all …]
|
D | mcumgr.py | 3 # SPDX-License-Identifier: Apache-2.0 30 """Sample wrapper for mcumgr command-line tool""" 37 def create_for_serial(cls, serial_port: str) -> MCUmgr: 38 return cls(connection_options=f'--conntype serial --connstring={serial_port}') 41 def is_available(cls) -> bool: 48 def run_command(self, cmd: str) -> str: 49 command = f'{self.mcumgr_exec} {self.conn_opts} {cmd}' 50 logger.info(f'CMD: {command}') 51 return check_output(shlex.split(command), text=True) 57 command = f'-t {timeout} image upload {image}' [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/shell_mgmt/include/mgmt/mcumgr/grp/shell_mgmt/ |
D | shell_mgmt_impl.h | 2 * Copyright (c) 2018-2021 mcumgr authors 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief Declares implementation-specific functions required by shell 22 * @brief Execute `line` as a shell command 24 * @param line : shell command to be executed 25 * @return int : 0 on success, -errno otherwise 28 shell_mgmt_impl_exec(const char *line); 34 * the string output of the shell command if it exists. If the shell provided no
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/shell_mgmt/src/ |
D | shell_mgmt.c | 2 * Copyright (c) 2018-2021 mcumgr authors 4 * SPDX-License-Identifier: Apache-2.0 24 shell_exec(const char *line) in shell_exec() argument 29 return shell_execute_cmd(sh, line); in shell_exec() 42 * Command handler: shell exec 49 char line[CONFIG_SHELL_CMD_BUFF_SIZE + 1]; in shell_mgmt_exec() local 52 zcbor_state_t *zsd = ctxt->reader->zs; in shell_mgmt_exec() 53 zcbor_state_t *zse = ctxt->writer->zs; in shell_mgmt_exec() 67 if (key.len == (ARRAY_SIZE(argv_keyword) - 1) && in shell_mgmt_exec() 68 memcmp(key.value, argv_keyword, ARRAY_SIZE(argv_keyword) - 1) == 0) { in shell_mgmt_exec() [all …]
|
/Zephyr-latest/boards/native/common/extra_args/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 6 string "Extra command line arguments" 8 Extra command line options/arguments which will be handled like if they were passed to the
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
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: 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 141 self.parse_record(line) 143 runid_match = re.search(self.run_id_pattern, line) [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/ |
D | binary_adapter_test.py | 3 # SPDX-License-Identifier: Apache-2.0 25 def script_path(resources: Path) -> str: 30 def fixture_device_adapter(tmp_path: Path) -> Generator[NativeSimulatorAdapter, None, None]: 43 ) -> Generator[NativeSimulatorAdapter, None, None]: 44 device.command = ['python3', script_path] 52 def test_if_binary_adapter_runs_without_errors(launched_device: NativeSimulatorAdapter) -> None: 54 Run script which prints text line by line and ends without errors. 63 file_lines = [line.strip() for line in file.readlines()] 64 assert file_lines[-2:] == lines[-2:] 69 ) -> None: [all …]
|
/Zephyr-latest/doc/develop/west/ |
D | sign.rst | 1 .. _west-sign: 6 The ``west sign`` :ref:`extension <west-extensions>` command can be used to 9 an external, post-processing tool that "stitches" the final components of 10 the image together. Run ``west sign -h`` for command line help. 16 but on :ref:`west config<west-config>`, similar to 17 :ref:`west-building-cmake-config`. 27 difficult. Reproducing a lower ``west sign`` command to debug some build-time issue 28 can be very time-consuming: it requires at least enabling and searching verbose 37 .. code-block:: ini 46 path = "/home/me/zworkspace/build-rimage/rimage" [all …]
|
D | extensions.rst | 1 .. _west-extensions: 8 for short. Extensions show up in the ``west --help`` output in a special 14 :ref:`build, flash, and debug <west-build-flash-debug>` and the 15 :ref:`ones described here <west-zephyr-ext-cmds>` , are extensions. That's why 16 help for them shows up like this in ``west --help``: 18 .. code-block:: none 24 sign: sign a Zephyr binary for bootloader chain-loading 30 See :file:`zephyr/scripts/west-commands.yml` and the 37 :ref:`configuration <west-config>` option to ``false``. To set this 40 .. code-block:: console [all …]
|
/Zephyr-latest/scripts/tests/twister_blackbox/test_data/samples/pytest/shell/pytest/ |
D | test_shell.py | 3 # SPDX-License-Identifier: Apache-2.0 13 logger.info('send "help" command') 20 logger.info('send "kernel version" command') 22 assert any(['Zephyr version' in line for line in lines]), 'expected response not found'
|
/Zephyr-latest/samples/subsys/testsuite/pytest/shell/pytest/ |
D | test_shell.py | 3 # SPDX-License-Identifier: Apache-2.0 13 logger.info('send "help" command') 20 logger.info('send "kernel version" command') 22 assert any(['Zephyr version' in line for line in lines]), 'expected response not found'
|
/Zephyr-latest/include/zephyr/shell/ |
D | shell_history.h | 4 * SPDX-License-Identifier: Apache-2.0 56 * Function clears whole shell command history. 71 * @brief Get next entry in shell command history. 73 * Function returns next (in given direction) stored line. 77 * @param[out] dst Buffer where line is copied. 86 * @brief Put line into shell command history. 91 * @param line Data. 95 void z_shell_history_put(struct shell_history *history, uint8_t *line, 107 return (history->current) ? true : false; in z_shell_history_active()
|
/Zephyr-latest/scripts/native_simulator/native/src/ |
D | nsi_cmdline.c | 5 * SPDX-License-Identifier: Apache-2.0 21 /* Extra "command line options" provided programmatically: */ 41 * Add a set of command line options to the program. 78 used_args += count - 1; in nsi_add_command_line_opts() 80 * -1 as the end marker should be overwritten next time something in nsi_add_command_line_opts() 111 * Handle possible command line arguments. 136 test_argc = argc - i - 1; in nsi_handle_cmd_line() 167 * The application/test can use this function to inspect all the command line 177 * The application/test can use this function to inspect the command line 178 * arguments received after --testargs
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/device/ |
D | hardware_adapter.py | 3 # SPDX-License-Identifier: Apache-2.0 31 def __init__(self, device_config: DeviceConfig) -> None: 41 def generate_command(self) -> None: 42 """Return command to flash.""" 43 command = [ 46 '--skip-rebuild', 47 '--build-dir', str(self.device_config.build_dir), 56 command.extend(runner_base_args) 60 command.append('--') 61 command.extend(command_extra_args) [all …]
|
/Zephyr-latest/boards/native/nrf_bsim/common/ |
D | cmdline.h | 4 * SPDX-License-Identifier: Apache-2.0 12 * The command line arguments parsing logic from native_sim was born as a copy 17 * command line arguments is passed to the nrf*_bsim one
|
/Zephyr-latest/doc/services/device_mgmt/smp_groups/ |
D | smp_group_9.rst | 14 +-------------------+-----------------------------------------------+ 15 | ``Command ID`` | Command description | 17 | ``0`` | Shell command line execute | 18 +-------------------+-----------------------------------------------+ 20 Shell command line execute 23 The command allows to execute command line in a similar way to typing it into 26 Shell command line execute request 29 Execute command request header: 34 +--------+--------------+----------------+ 35 | ``OP`` | ``Group ID`` | ``Command ID`` | [all …]
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | zperf.rst | 20 .. code-block:: console 25 in Zephyr. See :zephyr:code-sample:`zperf sample application <zperf>` for details. 31 For example, the following command line must be used for UDP testing: 33 .. code-block:: console 35 $ iperf -s -l 1K -u -V -B 2001:db8::2 37 For TCP testing, the command line would look like this: 39 .. code-block:: console 41 $ iperf -s -l 1K -V -B 2001:db8::2 46 .. code-block:: console 51 For TCP the zperf command would look like this: [all …]
|
/Zephyr-latest/drivers/serial/ |
D | Kconfig.native_posix | 1 # SPDX-License-Identifier: Apache-2.0 46 When this option is selected a new command line switch is provided: 47 ``--wait_uart`` 48 When ``--wait_uart`` is used, writes to the UART will be held until a 56 This is used for example in PPP (Point-to-Point Protocol) 60 string "Default command to attach the UART to a new terminal" 61 default "xterm -e screen %s &" 63 If the native executable is called with the --attach_uart 64 command line option, this will be the default command which will be 66 Note that this command must have one, and only one, '%s' as [all …]
|
/Zephyr-latest/cmake/util/ |
D | execute_process.cmake | 1 # SPDX-License-Identifier: Apache-2.0 3 # Parameter names identical to the execute_process() CMake command, and 4 # "ARGS" for the process command-line arguments. 6 # when invoking the COMMAND. Example: 8 # -DARGS="${ARGS}" 10 if(NOT DEFINED COMMAND) 11 message(FATAL_ERROR "No COMMAND argument supplied") 33 COMMAND ${COMMAND}
|
/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 */ 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() 179 * in the command line argument. [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> */ 56 * "--<option>=<name>"
|
/Zephyr-latest/boards/native/native_posix/ |
D | cmdline.c | 4 * SPDX-License-Identifier: Apache-2.0 36 * Add a set of command line options to the program. 73 used_args += count - 1; in native_add_command_line_opts() 75 * -1 as the end marker should be overwritten next time something in native_add_command_line_opts() 110 * Handle possible command line arguments. 129 test_argc = argc - i - 1; in native_handle_cmd_line() 142 * The application/test can use this function to inspect all the command line 152 * The application/test can use this function to inspect the command line 153 * arguments received after --testargs
|