/Zephyr-latest/scripts/schemas/ |
D | patch-schema.yml | 3 # SPDX-License-Identifier: Apache-2.0 8 schema;patch-schema: 11 - type: map 15 # E.g. zephyr/kernel-pipe-fix-not-k-no-wait-and-ge-min-xfer-bytes.patch 20 # The SHA-256 checksum of the patch file 25 pattern: "^[0-9a-f]{64}$" 44 # The date the patch was created, in ISO 8601 date format YYYY-MM-DD 48 format: "%Y-%m-%d" 56 # e.g. https://github.com/zephyrproject-rtos/zephyr/pull/24486 57 merge-pr: [all …]
|
/Zephyr-latest/scripts/west_commands/ |
D | patch.py | 3 # SPDX-License-Identifier: Apache-2.0 22 WEST_PATCH_SCHEMA_PATH = Path(__file__).parents[1] / "schemas" / "patch-schema.yml" 52 See "west patch apply --help" for details. 56 Run "west patch clean" to clean patches. 57 See "west patch clean --help" for details. 62 See "west patch list --help" for details. 66 The patches.yml syntax is described in "scripts/schemas/patch-schema.yml". 69 - path: zephyr/kernel-pipe-fix-not-k-no-wait-and-ge-min-xfer-bytes.patch 74 date: 2020-04-20 76 merge-pr: https://github.com/zephyrproject-rtos/zephyr/pull/24486 [all …]
|
D | blobs.py | 3 # SPDX-License-Identifier: Apache-2.0 26 # Keep this in sync with the string in west-commands.yml. 39 -------------- 50 - module: name of the module that contains this blob 51 - abspath: blob absolute path 52 - status: short status (A: present, M: hash failure, D: not present) 53 - path: blob local path from <module>/zephyr/blobs/ 54 - sha256: blob SHA256 hash in hex 55 - type: type of blob 56 - version: version string [all …]
|
D | sign.py | 3 # SPDX-License-Identifier: Apache-2.0 28 sys.path.insert(0, str(ZEPHYR_SCRIPTS / 'dts' / 'python-devicetree' / 'src')) 31 This command automates some of the drudgery of creating signed Zephyr 32 binaries for chain-loading by a bootloader. 36 west sign -t your_tool -- ARGS_FOR_YOUR_TOOL 40 which sort of ARGS_FOR_YOUR_TOOLS you use, the `--` separator/sentinel may 42 understand POSIX 12.2 Guideline 10, always use `--`. 44 See tool-specific help below for details.''' 48 ------- 53 west sign -t imgtool -- --key YOUR_SIGNING_KEY.pem [all …]
|
/Zephyr-latest/doc/develop/west/ |
D | zephyr-cmds.rst | 1 .. _west-zephyr-ext-cmds: 6 This page documents miscellaneous :ref:`west-zephyr-extensions`. 8 .. _west-boards: 13 The ``boards`` command can be used to list the boards that are supported by 20 This command lists all supported boards in a default format. If you prefer to 21 specify the display format yourself you can use the ``--format`` (or ``-f``) 24 west boards -f "{arch}:{name}" 28 west boards -h 30 .. _west-completion: 35 The ``completion`` extension command outputs shell completion scripts that can [all …]
|
D | why.rst | 1 .. _west-history: 9 * The ability to provide an extensible and user-friendly command-line interface 12 During the development of west, a set of :ref:`west-design-constraints` were 32 * **R4**: Support both continuous tracking and commit-based (bisectable) project 40 `Git Submodules <https://git-scm.com/book/en/v2/Git-Tools-Submodules>`_ and 41 Google's `repo <https://gerrit.googlesource.com/git-repo/>`_. 49 - Does not cleanly support using zephyr as the manifest repository (**R4**) 50 - Python 2 only 51 - Does not play well with Windows 52 - Assumes Gerrit is used for code review [all …]
|
D | built-in.rst | 1 .. _west-built-in-cmds: 3 Built-in commands 6 This page describes west's built-in commands, some of which were introduced in 7 :ref:`west-basics`, in more detail. 20 For additional help, run ``west <command> -h`` (e.g. ``west init -h``). 22 .. _west-init: 27 This command creates a west workspace. It can be used in two ways: 34 .. code-block:: none 36 west init [-m URL] [--mr REVISION] [--mf FILE] [directory] 40 the ``-m`` switch, the initial revision to check out using ``--mr``, and [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 128 /* Send query command to dummy SMP backend */ in ZTEST() 141 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST() 142 header = (struct smp_hdr *)nb->data; in ZTEST() 143 zassert_equal(header->nh_len, sys_cpu_to_be16(TEST_RESPONSE_OK_DATA_LENGTH), in ZTEST() 145 zassert_equal(header->nh_flags, 0, "SMP header flags mismatch"); in ZTEST() 146 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST() 147 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_SETTINGS), in ZTEST() 149 zassert_equal(header->nh_seq, 1, "SMP header sequence number mismatch"); in ZTEST() 150 zassert_equal(header->nh_id, SETTINGS_MGMT_ID_COMMIT, "SMP header command ID mismatch"); in ZTEST() [all …]
|
/Zephyr-latest/scripts/native_simulator/ |
D | Makefile | 2 # SPDX-License-Identifier: Apache-2.0 18 -include ${NSI_CONFIG_FILE} 35 NSI_ARCH?=-m32 37 NSI_COVERAGE?=--coverage 57 NSI_DEBUG?=-g 59 NSI_OPT?=-O0 61 NSI_WARNINGS?=-Wall -Wpedantic 63 NSI_CPPFLAGS?=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED 65 NO_PIE_CO:=-fno-pie -fno-pic 66 DEPENDFLAGS:=-MMD -MP [all …]
|
/Zephyr-latest/scripts/west_commands/completion/ |
D | west-completion.fish | 2 # this is used to filter which command to show 15 # exclude the caller if one of the arguments is present in the command line 17 # return 1 if one of the arguments is present in the command line 20 set -l tokens (commandline -opc) 36 …ents to count, if not specified will count all arguments after 'west <command>' on the command line 38 # return 1 if the command line contain more than $argv[1] element from $argv[n...] 41 set -l tokens (commandline -opc) 42 set -l argc (count $argv) 43 set -l max $argv[1] 44 set -l counter 0 [all …]
|
D | west-completion.zsh | 4 # SPDX-License-Identifier: Apache-2.0 6 # Ensure this works also when being source-ed 9 typeset -A -g _opt_args 12 local -a builtin_cmds=( 19 'forall[run a command in one or more local projects]' 22 'help[get help for west or a command]' 25 local -a zephyr_ext_cmds=( 29 'sign[sign a Zephyr binary for bootloader chain-loading]' 34 'zephyr-export[export Zephyr installation as a CMake config package]' 40 local -a all_cmds=(${builtin_cmds} ${zephyr_ext_cmds}) [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/enum_mgmt/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 137 /* Send query command to dummy SMP backend */ in ZTEST() 152 zassert_equal(header->nh_flags, 0, "SMP header flags mismatch"); in ZTEST() 153 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST() 154 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_ENUM), in ZTEST() 156 zassert_equal(header->nh_seq, 1, "SMP header sequence number mismatch"); in ZTEST() 157 zassert_equal(header->nh_id, ENUM_MGMT_ID_COUNT, "SMP header command ID mismatch"); in ZTEST() 158 zassert_equal(header->nh_version, 1, "SMP header version mismatch"); in ZTEST() 161 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST() 169 /* Clean up test */ in ZTEST() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/ |
D | main.c | 2 * Copyright (c) 2015-2016 Intel Corporation 4 * SPDX-License-Identifier: Apache-2.0 30 #define DEVICE_NAME_LEN (sizeof(DEVICE_NAME) - 1) 103 printk("Ignored request to change GATT services set to #%d - " in service_setup() 282 * @brief Clean out excess bytes from the input buffer 290 printk("command size wrong! (%u extra bytes removed)", size); in read_excess_bytes() 305 size -= sizeof(set); in switch_service_set() 347 uint16_t command; in main() local 372 * Wait for a command to arrive - then read and execute command in main() 374 edtt_read((uint8_t *)&command, sizeof(command), EDTTT_BLOCK); in main() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/ |
D | main.c | 5 * SPDX-License-Identifier: Apache-2.0 67 static const char valid_time_string[] = "2023-08-04T04:40:13"; 68 static const char valid_time2_string[] = "2001-01-02T03:04:05"; 70 static const char invalid_time2_string[] = "20a1-b1-aTbb:dd:qq"; 71 static const char invalid_time3_string[] = "1820-01-02T03:04:05"; 101 result->found = false; in mcumgr_ret_decode() 108 result->group = (uint16_t)tmp_group; in mcumgr_ret_decode() 109 result->rc = (uint16_t)tmp_rc; in mcumgr_ret_decode() 110 result->found = true; in mcumgr_ret_decode() 180 /* Send query command to dummy SMP backend */ in ZTEST() [all …]
|
/Zephyr-latest/cmake/modules/ |
D | user_cache.cmake | 1 # SPDX-License-Identifier: Apache-2.0 11 # Only data that can be safely re-generated should be placed in this cache. 15 # See https://github.com/zephyrproject-rtos/zephyr/pull/7102 for details. 20 # - USER_CACHE_DIR: User cache directory in use. 26 # use only and may be removed, renamed, or re-purposed without prior notice. 64 execute_process(COMMAND ${PYTHON_EXECUTABLE} 69 # The directory is write-able 81 # is good practice to have clean git repositories.
|
/Zephyr-latest/doc/connectivity/bluetooth/autopts/ |
D | autopts-win10.rst | 1 .. _autopts-win10: 20 Start -> Settings -> Update & Security -> Windows Update 44 Download and install `Git <https://git-scm.com/downloads>`_. 79 https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download 112 .. code-block:: 116 Build the auto-pts tester app 118 .. code-block:: 120 west build -p auto -b nrf52840dk/nrf52840 zephyr/tests/bluetooth/tester/ 124 .. code-block:: 126 west flash --help [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/img_mgmt_slot_info/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 105 struct slot_info_t *slot_data = &image_data->slots[image_data->current_slot]; in parse_slot_entries() 108 &slot_data->slot), in parse_slot_entries() 110 &slot_data->size), in parse_slot_entries() 112 &slot_data->upload_image_id), in parse_slot_entries() 114 &slot_data->test2), in parse_slot_entries() 122 "Expected to receive 2-4 decoded zcbor elements"); in parse_slot_entries() 124 slot_data->slot_received = zcbor_map_decode_bulk_key_found(output_decode, in parse_slot_entries() 127 slot_data->size_received = zcbor_map_decode_bulk_key_found(output_decode, in parse_slot_entries() 130 slot_data->upload_image_id_received = zcbor_map_decode_bulk_key_found( in parse_slot_entries() [all …]
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | test_outfile.py | 4 # SPDX-License-Identifier: Apache-2.0 6 Blackbox tests for twister's command line functions changing the output files. 18 # pylint: disable=no-name-in-module 41 (['--clobber-output'], False, False), 42 (['--no-clean'], False, True), 43 (['--clobber-output', '--no-clean'], False, True), 45 ids=['clobber', 'do not clobber', 'do not clean', 'do not clobber, do not clean'] 50 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ 53 ['-p'] * len(test_platforms), test_platforms 56 # We create an empty 'blackbox-out' to trigger the clobbering [all …]
|
/Zephyr-latest/tests/kernel/sched/preempt/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 24 #error Preemption test requires single-CPU operation 67 /* Command to worker: who to wake up */ 70 /* Command to worker: use a sched_lock()? */ 73 /* Command to worker: use irq_offload() to indirect the wakeup? */ 76 /* Command to worker: sleep after wakeup? */ 79 /* Command to worker: yield after wakeup? */ 101 /* A little bit of white-box inspection: check that all the in wakeup_src_thread() 118 while (do_sleep && !(src_thread->base.thread_state & _THREAD_PENDING)) { in wakeup_src_thread() 289 zassert_true(k_uptime_get() - start > 0, in worker() [all …]
|
/Zephyr-latest/boards/native/nrf_bsim/common/ |
D | bstests.h | 4 * SPDX-License-Identifier: Apache-2.0 23 * Will be called with the command line arguments for the testcase. 26 * Note that this function can be used for test pre-initialization steps 27 * like opening the back-channels. But you should not interact yet with the 34 * tests pre-initialization 46 * terminated (clean up memory and close your files here)
|
/Zephyr-latest/samples/subsys/mgmt/hawkbit/ |
D | README.rst | 1 .. zephyr:code-sample:: hawkbit-api 3 :relevant-api: hawkbit 29 :zephyr:board:`Freedom-K64F <frdm_k64f>` MCU by default. The application should 45 the Freedom-K64F Development Kit (``BOARD=frdm_k64f``). 59 .. code-block:: console 68 .. code-block:: console 70 sudo docker run -p 8080:8080 hawkbit/hawkbit-update-server:latest \ 71 --hawkbit.dmf.rabbitmq.enabled=false \ 72 --hawkbit.server.ddi.security.authentication.anonymous.enabled=true 75 the server URL, ``<your-ip-address>:8080``, and logging into the server using [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/hci_test_app/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 63 * @brief Clean out excess bytes from the input buffer 71 LOG_ERR("command size wrong! (%u extra bytes removed)", size); in read_excess_bytes() 76 * @brief Provide an error response when an HCI command send failed 92 * @brief Allocate buffer for HCI command and fill in opCode for the command 103 hdr->opcode = sys_cpu_to_le16(opcode); in hci_cmd_create() 104 hdr->param_len = param_len; in hci_cmd_create() 146 * @brief Allocate buffer for HCI command, fill in parameters and send the 147 * command... 164 LOG_ERR("Failed to send HCI command %d (err %d)", in send_hci_command() [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | twister_main.py | 4 # SPDX-License-Identifier: Apache-2.0 43 formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") 45 formatter = logging.Formatter("%(levelname)-7s - %(message)s") 48 "%(asctime)s - %(name)s - %(levelname)s - %(message)s" 100 sys.exit(f"Too many '{options.outdir}.*' directories. Run either with --no-clean, " 101 "or --clobber-output, or delete these directories manually.") 139 # if we are using command line platform filter, no need to list every 142 # command line 175 duration = time.time() - start_time 210 duration = time.time() - start_time [all …]
|
/Zephyr-latest/tests/kernel/fpu_sharing/generic/src/ |
D | pi.c | 2 * Copyright (c) 2011-2014 Wind River Systems, Inc. 5 * SPDX-License-Identifier: Apache-2.0 24 * pi = 4 * (1 - 1/3 + 1/5 - 1/7 + 1/9 - ... ) 49 * is configurable from the command line. 56 * in its error handling logic -- the value was incremented in a register, 77 FP_TYPE sign = FP_CONSTANT(-1.0); in calculate_pi_low() 83 sign = FP_CONSTANT(-1.0); in calculate_pi_low() 90 sign *= FP_CONSTANT(-1.0); in calculate_pi_low() 116 FP_TYPE sign = FP_CONSTANT(-1.0); in calculate_pi_high() 124 sign = FP_CONSTANT(-1.0); in calculate_pi_high() [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/ |
D | fs_mgmt.c | 2 * Copyright (c) 2018-2021 mcumgr authors 4 * Copyright (c) 2022-2023 Nordic Semiconductor ASA 6 * SPDX-License-Identifier: Apache-2.0 104 /** Which transport owns the lock on the on-going file transfer. */ 121 /* Clean up open file state */ 137 /* Re-schedule to retry */ in file_close_work_handler() 154 if (rc == -EINVAL) { in fs_mgmt_filelen() 156 } else if (rc == -ENOENT) { in fs_mgmt_filelen() 193 /* File upload/download has finished, clean up */ in fs_mgmt_upload_download_finish_check() 202 * Command handler: fs file (read) [all …]
|