Home
last modified time | relevance | path

Searched +full:bad +full:- +full:key +full:- +full:2 (Results 1 – 25 of 52) sorted by relevance

123

/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings-include/
Dinclude-invalid-keys.yaml1 # SPDX-License-Identifier: BSD-3-Clause
5 compatible: include-invalid-keys
7 - name: include.yaml
8 property-allowlist: [x]
9 bad-key-1: 3
10 bad-key-2: 3
/Zephyr-latest/tests/subsys/mgmt/mcumgr/zcbor_bulk/src/
Dmain.c2 * Copyright (c) 2022-2023 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
26 zassert_ok(strcmp(map_one[0].key.value, "hello")); in ZTEST()
27 zassert_equal(map_one[0].key.len, sizeof("hello") - 1); in ZTEST()
31 zassert_ok(strcmp(map_one[0].key.value, map_two[0].key.value)); in ZTEST()
32 zassert_equal(map_one[0].key.len, map_two[0].key.len); in ZTEST()
52 zcbor_new_encode_state(zsd, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
71 zassert_equal(sizeof("world") - 1, world.len, "Expected length %d", in ZTEST()
72 sizeof("world") - 1); in ZTEST()
93 zcbor_new_encode_state(zsd, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
[all …]
/Zephyr-latest/drivers/i2s/
Di2s_esp32.c4 * SPDX-License-Identifier: Apache-2.0
93 if (i2s_cfg->word_size == 24) { in i2s_esp32_calculate_clock()
97 if (i2s_cfg->options & I2S_OPT_FRAME_CLK_SLAVE || in i2s_esp32_calculate_clock()
98 i2s_cfg->options & I2S_OPT_BIT_CLK_SLAVE) { in i2s_esp32_calculate_clock()
99 i2s_hal_clock_info->bclk_div = 8; in i2s_esp32_calculate_clock()
100 i2s_hal_clock_info->bclk = in i2s_esp32_calculate_clock()
101 i2s_cfg->frame_clk_freq * i2s_cfg->channels * channel_length; in i2s_esp32_calculate_clock()
102 i2s_hal_clock_info->mclk = i2s_cfg->frame_clk_freq * i2s_hal_clock_info->bclk_div; in i2s_esp32_calculate_clock()
104 i2s_hal_clock_info->bclk = in i2s_esp32_calculate_clock()
105 i2s_cfg->frame_clk_freq * i2s_cfg->channels * channel_length; in i2s_esp32_calculate_clock()
[all …]
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dmesh.c4 * SPDX-License-Identifier: Apache-2.0
72 board_show_text("Heartbeat Received", false, K_SECONDS(2)); in heartbeat()
82 board_show_text("Starting Mesh Failed", false, K_SECONDS(2)); in show_mesh_status()
164 board_show_text("Attention!", false, K_SECONDS(2)); in attention_on()
186 NET_BUF_SIMPLE_DEFINE(msg, 2 + 1 + 4); in gen_onoff_get()
187 struct led_onoff_state *state = model->rt->user_data; in gen_onoff_get()
190 bt_mesh_model_elem(model)->rt->addr, state->current); in gen_onoff_get()
192 net_buf_simple_add_u8(&msg, state->current); in gen_onoff_get()
205 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_set_unack()
206 struct led_onoff_state *state = model->rt->user_data; in gen_onoff_set_unack()
[all …]
/Zephyr-latest/arch/arm/core/cortex_a_r/
Dswap_helper.S2 * Copyright (c) 2013-2014 Wind River Systems, Inc.
3 * Copyright (c) 2017-2019 Nordic Semiconductor ASA.
6 * SPDX-License-Identifier: Apache-2.0
11 * @brief Thread context switching for ARM Cortex-A and Cortex-R
14 * on ARM Cortex-A and Cortex-R CPUs.
40 * For Cortex-R, this function is directly called either by z_arm_{exc,int}_exit
62 /* addr of callee-saved regs in thread in r0 */
68 stm r0, {r4-r11, sp}
73 tst r0, #K_FP_REGS /* arch_current_thread()->base.user_options & K_FP_REGS */
81 * used since this thread has used it. Consequently, the caller-saved
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dtestinstance.py3 # Copyright (c) 2018-2024 Intel Corporation
7 # SPDX-License-Identifier: Apache-2.0
75 source_dir_rel = testsuite.source_dir_rel.rsplit(os.pardir+os.path.sep, 1)[-1]
113 def status(self) -> TwisterStatus:
117 def status(self, value : TwisterStatus) -> None:
120 key = value.name if isinstance(value, Enum) else value
121 self._status = TwisterStatus[key]
176 def compose_case_name(self, tc_name) -> str:
215 # command-line, then we need to run the test, not just build it.
279 # we asked for build-only on the command line
[all …]
Dconfig_parser.py3 # Copyright (c) 2018-2022 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
148 @return A dictionary containing the scenario key-value pairs with
202 # (2) common['extra_conf_files']
232 stacklevel=2
256 f"bad {kinfo['type']} value '{d[k]}' for key '{k}' in name '{name}'"
Dtestsuite.py3 # Copyright (c) 2018-2024 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
71 # do not match until end-of-line, otherwise we won't allow
73 # line--as we only search starting the end of this match
74 br"^\s*ztest_test_suite\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,",
78 br"\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,",
81 br"^\s*ZTEST_SUITE\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,",
84 br"^\s*(?:ZTEST|ZTEST_F|ZTEST_USER|ZTEST_USER_F)\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,"
85 br"\s*(?P<testcase_name>[a-zA-Z0-9_]+)\s*",
91 # 2. register test suites and a custom test_main definition if and only if
[all …]
Dtestplan.py4 # Copyright (c) 2018-2024 Intel Corporation
7 # SPDX-License-Identifier: Apache-2.0
28 print("Install the anytree module to use the --test-tree option")
50 "python-devicetree", "src"))
51 from devicetree import edtlib # pylint: disable=unused-import
57 PLATFORM_KEY = 'platform key filter'
86 config_re = re.compile('(CONFIG_[A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
87 dt_re = re.compile('([A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
91 "scripts", "schemas", "twister", "testsuite-schema.yaml"))
94 "scripts", "schemas", "twister", "quarantine-schema.yaml"))
[all …]
/Zephyr-latest/scripts/west_commands/
Dbindesc.py3 # SPDX-License-Identifier: Apache-2.0
31 cmd.inf('Skipping block at ' + ptr + '; bad magic')
33 if hd[2] & 1:
34 # NO-flash flag set; skip block
42 padding = newaddr - curraddr
48 cmd.die(f'Non-word padding size at {ptr}')
50 padding -= 4
64 TYPE_BYTES = 2
106 Work with Binary Descriptors - constant data objects
115 subparsers = parser.add_subparsers(help='sub-command to run', required=True)
[all …]
/Zephyr-latest/arch/arm/core/cortex_m/
Dswap_helper.S2 * Copyright (c) 2013-2014 Wind River Systems, Inc.
3 * Copyright (c) 2017-2019 Nordic Semiconductor ASA.
6 * SPDX-License-Identifier: Apache-2.0
11 * @brief Thread context switching for ARM Cortex-M
14 * on ARM Cortex-M CPUs.
52 * For Cortex-M, z_arm_pendsv() is invoked with no arguments.
78 /* addr of callee-saved regs in thread in r0 */
82 /* save callee-saved + psp in thread */
86 /* Store current r4-r7 */
87 stmea r0!, {r4-r7}
[all …]
/Zephyr-latest/arch/riscv/core/
Dpmp.c4 * SPDX-License-Identifier: Apache-2.0
6 * Physical Memory Protection (PMP) is RISC-V parlance for an MPU.
14 * PMP slot configurations are updated in memory to avoid read-modify-write
18 * In the stackguard case we keep an m-mode copy for each thread. Each user
19 * mode threads also has a u-mode copy. This makes faster context switching
23 * Thread-specific m-mode and u-mode PMP entries start from the PMP slot
30 #include <zephyr/linker/linker-defs.h>
53 #define PMP_ADDR(addr) ((addr) >> 2)
54 #define NAPOT_RANGE(size) (((size) - 1) >> 1)
72 start = (index == 0) ? 0 : (pmp_addr[index - 1] << 2); in print_pmp_entries()
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py3 # SPDX-License-Identifier: BSD-3-Clause
17 but a binding can also come from a 'child-binding:' key in the binding for the
23 The top-level entry points for the library are the EDT and Binding classes.
31 # --------------------
47 # - Consider using @property for APIs that don't need parameters. It makes
51 # - Think about the data type of the thing you're exposing. Exposing something
55 # - Avoid get_*() prefixes on functions. Name them after the thing they return
60 # - Don't expose dtlib stuff directly.
62 # - Add documentation for any new APIs you add.
108 The free-form description of the binding, or None.
[all …]
Ddtlib.py2 # 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.
109 dt._parse_error(f"{self.path}: bad character '{char}' "
113 def name(self) -> str:
117 # Converted to a property to discourage renaming -- that has to be done
122 def unit_addr(self) -> str:
126 return self.name.partition("@")[2]
[all …]
/Zephyr-latest/scripts/kconfig/
Dmenuconfig.py3 # Copyright (c) 2018-2019, Nordic Semiconductor ASA and Ulf Magnusson
4 # SPDX-License-Identifier: ISC
10 A curses-based Python 2/3 menuconfig implementation. The interface should feel
19 Ctrl-D/U: Page Down/Page Up
26 The mconf feature where pressing a key jumps to a menu entry with that
27 character in it in the current menu isn't supported. A jump-to feature for
33 F: Toggle show-help mode, which shows the help text of the currently selected
37 C: Toggle show-name mode, which shows the symbol name before each symbol menu
40 A: Toggle show-all mode, which shows all items, including currently invisible
52 When run in standalone mode, the top-level Kconfig file to load can be passed
[all …]
Dguiconfig.py4 # SPDX-License-Identifier: ISC
10 # pylint: disable=undefined-variable
16 A Tkinter-based menuconfig implementation, based around a treeview control and
18 ('make xconfig'). Compatible with both Python 2 and Python 3.
21 single menu (like menuconfig.py). Only single-menu mode distinguishes between
24 A show-all mode is available that shows invisible items in red.
29 Ctrl-S : Save configuration
30 Ctrl-O : Open configuration
31 Ctrl-A : Toggle show-all mode
32 Ctrl-N : Toggle show-name mode
[all …]
/Zephyr-latest/doc/develop/west/
Drelease-notes.rst1 .. _west-release-notes:
11 - New ``west grep`` command for running a "grep tool" in your west workspace's
18 .. code-block:: console
25 .. list-table::
27 * - ``git grep --untracked``
28 - ``west grep --untracked foo``
29 * - ``ripgrep``
30 - ``west grep --tool ripgrep foo``
31 * - ``grep --recursive``
32 - ``west grep --tool grep foo``
[all …]
/Zephyr-latest/drivers/dai/intel/ssp/
Dssp.c4 * SPDX-License-Identifier: Apache-2.0
22 #define dai_set_drvdata(dai, data) (dai->priv_data = data)
23 #define dai_get_drvdata(dai) dai->priv_data
24 #define dai_get_plat_data(dai) dai->ssp_plat_data
25 #define dai_get_mn(dai) dai->ssp_plat_data->mn_inst
26 #define dai_get_ftable(dai) dai->ssp_plat_data->ftable
27 #define dai_get_fsources(dai) dai->ssp_plat_data->fsources
28 #define dai_mn_base(dai) dai->ssp_plat_data->mn_inst->base
29 #define dai_base(dai) dai->ssp_plat_data->base
30 #define dai_ip_base(dai) dai->ssp_plat_data->ip_base
[all …]
/Zephyr-latest/tests/kernel/context/src/
Dmain.c2 * Copyright (c) 2012-2015 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
42 #define UNKNOWN_COMMAND -1
43 #define INVALID_BEHAVIOUR -2
54 * The Cortex-M use the SYSTICK exception for the system timer, which is
75 /* Cortex-M1 and Nios II do have a power saving instruction, so k_cpu_idle()
138 if (arch_current_thread()->base.prio < 0) { in isr_handler()
226 unsigned int i, key; in _test_kernel_cpu_idle() local
240 key = irq_lock(); in _test_kernel_cpu_idle()
243 k_cpu_atomic_idle(key); in _test_kernel_cpu_idle()
[all …]
/Zephyr-latest/kernel/include/
Dkernel_arch_interface.h4 * SPDX-License-Identifier: Apache-2.0
11 * Not all architecture-specific defines are here, APIs that are used
30 * @defgroup arch-timing Architecture timing APIs
35 * Architecture-specific implementation of busy-waiting
45 * @defgroup arch-threads Architecture thread APIs
46 * @ingroup arch-interface
50 /** Handle arch-specific logic for setting up new threads
52 * The stack and arch-specific thread state variables must be set up
64 * randomization and thread-local storage.
66 * Fields in thread->base will be initialized when this is called.
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_edtlib.py2 # SPDX-License-Identifier: BSD-3-Clause
23 # test.dts is the main test file. test-bindings/ and test-bindings-2/ has
46 with from_here(): edtlib.EDT("test.dts", ["test-bindings"])
48 enums_hpath = hpath('test-bindings/enums.yaml')
50 … marked as deprecated in 'properties:' in {hpath('test-bindings/deprecated.yaml')} for node /test-
51 "unit address and first address in 'reg' (0x1) don't match for /reg-zero-size-cells/node",
52 "unit address and first address in 'reg' (0x5) don't match for /reg-ranges/parent/node",
53 …"unit address and first address in 'reg' (0x30000000200000001) don't match for /reg-nested-ranges/…
54 …f"compatible 'enums' in binding '{enums_hpath}' has non-tokenizable enum for property 'string-enum…
55 …f"compatible 'enums' in binding '{enums_hpath}' has enum for property 'tokenizable-lower-enum' tha…
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc2520.c1 /* ieee802154_cc2520.c - TI CC2520 driver */
8 * SPDX-License-Identifier: Apache-2.0
47 * 1 - Debug related functions
48 * 2 - Generic helper functions (for any parts)
49 * 3 - GPIO related functions
50 * 4 - TX related helper functions
51 * 5 - RX related helper functions
52 * 6 - Radio device API functions
53 * 7 - Legacy radio device API functions
54 * 8 - Initialization
[all …]
/Zephyr-latest/include/zephyr/arch/
Darch_interface.h4 * SPDX-License-Identifier: Apache-2.0
8 * @defgroup arch-interface Architecture Interface
13 * call architecture-specific API so will have the prototypes for the
14 * architecture-specific APIs here. Architecture APIs that aren't used in this
17 * The set of architecture-specific APIs used internally by public macros and
53 * @defgroup arch-timing Architecture timing APIs
54 * @ingroup arch-interface
82 * through the full 64 bit space, wrapping at 2^64-1. Hardware with
92 * @addtogroup arch-threads
126 * buffer, defined as the area usable for thread stack context and thread-
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_nxp_fs26.c4 * SPDX-License-Identifier: Apache-2.0
92 0, 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 64, 128, 256, 512, 1024
141 for (i = size; i > 0; i--) { in fs26_calcrc()
176 tx_buf = (uint32_t)(FS26_SET_REG_ADDR(tx_frame->addr) in fs26_spi_transceive()
177 | FS26_SET_DATA(tx_frame->data) in fs26_spi_transceive()
178 | (tx_frame->write ? FS26_RW : 0)); in fs26_spi_transceive()
180 crc = fs26_calcrc((uint8_t *)&tx_buf, sizeof(tx_buf) - 1); in fs26_spi_transceive()
197 crc = fs26_calcrc((uint8_t *)&rx_buf, sizeof(rx_buf) - 1); in fs26_spi_transceive()
200 retval = -EIO; in fs26_spi_transceive()
205 rx_frame->status.raw = (uint8_t)FS26_GET_DEV_STATUS(rx_buf); in fs26_spi_transceive()
[all …]
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_common.h4 * SPDX-License-Identifier: Apache-2.0
23 #define ISSET_FLAG(p, f) (((p)->flags & (f)) == (f))
24 #define SET_FLAG(p, f) ((p)->flags |= (f))
25 #define CLEAR_FLAG(p, f) ((p)->flags &= ~(f))
32 #define GET_CURRENT_PD(p) ((p)->current_pd)
35 (p)->current_pd = osdp_to_pd(p, i); \
38 (uint32_t)((1 << ((ctx)->num_pd)) - 1)
39 #define AES_PAD_LEN(x) ((x + 16 - 1) & (~(16 - 1)))
40 #define NUM_PD(ctx) ((ctx)->num_pd)
105 #define SCS_11 0x11 /* CP -> PD -- CMD_CHLNG */
[all …]

123