/Zephyr-latest/drivers/disk/nvme/ |
D | nvme_disk.c | 3 * SPDX-License-Identifier: Apache-2.0 24 struct nvme_namespace *ns = CONTAINER_OF(disk->name, in nvme_disk_read() 33 LOG_WRN("Data buffer pointer needs to be 4-bytes aligned"); in nvme_disk_read() 34 return -EINVAL; in nvme_disk_read() 37 nvme_lock(disk->dev); in nvme_disk_read() 44 ret = -ENOMEM; in nvme_disk_read() 48 nvme_namespace_read_cmd(&request->cmd, ns->id, in nvme_disk_read() 51 /* We use only the first ioq atm in nvme_disk_read() 52 * ToDo: use smp cpu id and use it to select ioq in nvme_disk_read() 54 nvme_cmd_qpair_submit_request(ns->ctrlr->ioq, request); in nvme_disk_read() [all …]
|
/Zephyr-latest/drivers/dai/intel/dmic/ |
D | Kconfig.dmic | 4 # SPDX-License-Identifier: Apache-2.0 22 2. DAI tokens those describe the use case PCM format 26 bool "Use NHLT DMIC blob" 34 bool "Use parameters from topology - WIP" 37 based on use case and microphone datasheet parameters 45 bool "Use DMIC ownership claim/release" 49 dmic ownership must be claimed before use of dmic 52 bool "Use DMIC sync for multiple lines" 56 dmic sync registers must be set before use of dmic
|
/Zephyr-latest/include/zephyr/sys/ |
D | crc.h | 9 * SPDX-License-Identifier: Apache-2.0 34 /* Initial value expected to be used at the beginning of the OpenPGP CRC-24 computation. */ 37 * The CRC-24 value is stored on a 32-bit value, only the 3 least significant bytes 38 * are meaningful. Use the following mask to only keep the CRC-24 value. 59 CRC4, /**< Use @ref crc4 */ 60 CRC4_TI, /**< Use @ref crc4_ti */ 61 CRC7_BE, /**< Use @ref crc7_be */ 62 CRC8, /**< Use @ref crc8 */ 63 CRC8_CCITT, /**< Use @ref crc8_ccitt */ 64 CRC8_ROHC, /**< Use @ref crc8_rohc */ [all …]
|
/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_mci_io_mux.c | 4 * SPDX-License-Identifier: Apache-2.0 32 volatile uint32_t *pull_reg = &soc_ctrl->PAD_PU_PD_EN0; in configure_pin_props() 33 volatile uint32_t *slew_reg = &soc_ctrl->SR_CONFIG0; in configure_pin_props() 34 volatile uint32_t *sleep_force_en = &soc_ctrl->PAD_SLP_EN0; in configure_pin_props() 35 volatile uint32_t *sleep_force_val = &soc_ctrl->PAD_SLP_VAL0; in configure_pin_props() 37 /* GPIO 22-27 use always on configuration registers */ in configure_pin_props() 39 pull_reg = (&aon_soc_ciu->PAD_PU_PD_EN1 - 1); in configure_pin_props() 40 slew_reg = (&aon_soc_ciu->SR_CONFIG1 - 1); in configure_pin_props() 41 sleep_force_en = &aon_soc_ciu->PAD_SLP_EN0; in configure_pin_props() 42 sleep_force_val = &aon_soc_ciu->PAD_SLP_VAL0; in configure_pin_props() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | lwm2m.h | 3 * Copyright (c) 2017-2019 Foundries.io 5 * SPDX-License-Identifier: Apache-2.0 10 * @brief LwM2M high-level API 13 * LwM2M high-level interface is defined in this header. 18 * OMA-TS-LightweightM2M_Core-V1_1_1-20190617-A 20 * @defgroup lwm2m_api LwM2M high-level API 46 /* clang-format off */ 61 /* clang-format on */ 73 /* clang-format off */ 88 /* clang-format on */ [all …]
|
/Zephyr-latest/subsys/testsuite/ztest/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 43 value. Please be aware that increasing it for long-running test cases 64 default -2 if !PREEMPT_ENABLED 65 default -1 67 Set priority of the testing thread. Default is -1 (cooperative). 87 bool "Using a pre-defined fatal handler and hook function" 89 Use the pre-defined common fatal error handler and a post hook to 90 do actions in your test case, this option often enabled when doing 91 error test case. Remember to add ignore_fault tag in yaml file when 95 bool "Using a pre-defined assert handler and hook function" [all …]
|
/Zephyr-latest/samples/drivers/watchdog/ |
D | README.rst | 1 .. zephyr:code-sample:: watchdog 3 :relevant-api: watchdog_interface 5 Use the watchdog driver API to reset the board when it gets stuck in an infinite loop. 10 This sample demonstrates how to use the watchdog driver API. 12 A typical use case for a watchdog is that the board is restarted in case some piece of code 30 .. zephyr-app-commands:: 31 :zephyr-app: samples/drivers/watchdog 43 .. code-block:: console 46 Attempting to test pre-reset callback
|
/Zephyr-latest/dts/bindings/dai/ |
D | nxp,dai-esai.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nxp,dai-esai" 13 dai-index: 16 Use this property to specify the index of the DAI. At the 21 tx-fifo-watermark: 24 Use this property to specify the watermark value for the TX 29 rx-fifo-watermark: 32 Use this property to specify the watermark value for the RX 37 fifo-depth: 40 Use this property to set the FIFO depth that will be reported [all …]
|
D | nxp,dai-sai.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nxp,dai-sai" 8 include: [base.yaml, pinctrl-device.yaml] 13 mclk-is-output: 16 Use this property to set the SAI MCLK as output or as input. 21 rx-fifo-watermark: 24 Use this property to specify the watermark value for the TX 28 tx-fifo-watermark: 31 Use this property to specify the watermark value for the RX 37 fifo-depth: [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/ |
D | radio_nrf5_resources.h | 4 * SPDX-License-Identifier: Apache-2.0 7 /* Use the timer instance ID, not NRF_TIMERx directly, so that it can be checked 18 * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is 61 * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is 90 * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is 136 /* Allocate 2 adjacent channels for PHYEND delay compensation. Use the same channels as for 139 * That saves from use of another timer. 145 * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is 149 * including CTE EVENTS_PHYEND event is generated at very end of a PDU. In case there is no CTE in 157 * In case there is a CTE in a PDU then EVENTS_PHYEND event is generated after the CTE. [all …]
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_agilex_ll.c | 2 * Copyright (c) 2019-2021, Intel Corporation. All rights reserved. 4 * SPDX-License-Identifier: Apache-2.0 13 * Intel SoC re-use Arm Trusted Firmware (ATF) driver code in Zephyr. 16 * register access. This allow Zephyr to re-use the ATF driver codes 31 case CLKMGR_PLLGLOB_PSRC_EOSC1: in get_ref_clk() 35 case CLKMGR_PLLGLOB_PSRC_INTOSC: in get_ref_clk() 38 case CLKMGR_PLLGLOB_PSRC_F2S: in get_ref_clk() 62 case CLKMGR_PSRC_MAIN: in get_clk_freq() 67 case CLKMGR_PSRC_PER: in get_clk_freq()
|
D | clock_control_mcux_syscon.c | 2 * Copyright 2020-2024 NXP 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h> 50 case MCUX_PORT0_CLK: in mcux_lpc_syscon_clock_control_on() 53 case MCUX_PORT1_CLK: in mcux_lpc_syscon_clock_control_on() 56 case MCUX_PORT2_CLK: in mcux_lpc_syscon_clock_control_on() 59 case MCUX_PORT3_CLK: in mcux_lpc_syscon_clock_control_on() 62 case MCUX_PORT4_CLK: in mcux_lpc_syscon_clock_control_on() 66 case MCUX_PORT0_CLK: in mcux_lpc_syscon_clock_control_on() 69 case MCUX_PORT1_CLK: in mcux_lpc_syscon_clock_control_on() [all …]
|
/Zephyr-latest/lib/crc/ |
D | crc_shell.c | 4 * SPDX-License-Identifier: Apache-2.0 47 return -1; in string_to_crc_type() 56 shell_print(sh, "-f This is the first packet"); in usage() 57 shell_print(sh, "-l This is the last packet"); in usage() 58 shell_print(sh, "-p <poly> Use polynomial 'poly'"); in usage() 59 shell_print(sh, "-r Reflect"); in usage() 60 shell_print(sh, "-s <seed> Use 'seed' as the initial value"); in usage() 61 shell_print(sh, "-t <type> Compute the CRC described by 'type'"); in usage() 72 size_t size = -1; in cmd_crc() 78 void *addr = (void *)-1; in cmd_crc() [all …]
|
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/ |
D | akm09918c_decoder.c | 3 * SPDX-License-Identifier: Apache-2.0 26 case SENSOR_CHAN_MAGN_X: in akm09918c_decoder_get_size_info() 27 case SENSOR_CHAN_MAGN_Y: in akm09918c_decoder_get_size_info() 28 case SENSOR_CHAN_MAGN_Z: in akm09918c_decoder_get_size_info() 29 case SENSOR_CHAN_MAGN_XYZ: in akm09918c_decoder_get_size_info() 34 return -ENOTSUP; in akm09918c_decoder_get_size_info() 38 /** Fixed shift value to use. All channels (MAGN_X, _Y, and _Z) have the same fixed range of 39 * +/- 49.12 Gauss. 63 case SENSOR_CHAN_MAGN_X: in akm09918c_decoder_decode() 64 case SENSOR_CHAN_MAGN_Y: in akm09918c_decoder_decode() [all …]
|
/Zephyr-latest/drivers/led/ |
D | lp3943.c | 4 * SPDX-License-Identifier: Apache-2.0 14 * - Blink period and brightness value are controlled by two sets of PSCx/PWMx 65 case 0: in lp3943_get_led_reg() 66 case 1: in lp3943_get_led_reg() 67 case 2: in lp3943_get_led_reg() 69 case 3: in lp3943_get_led_reg() 72 case 4: in lp3943_get_led_reg() 73 case 5: in lp3943_get_led_reg() 74 case 6: in lp3943_get_led_reg() 76 case 7: in lp3943_get_led_reg() [all …]
|
/Zephyr-latest/tests/bsim/babblekit/include/babblekit/ |
D | testcase.h | 4 * SPDX-License-Identifier: Apache-2.0 18 * @param ... format-string and arguments to print to console 30 * Printf-like function that also terminates the device with an error code. 32 * @param ... format-string and arguments to print to console 42 * @brief Mark the currently-running test as "Passed" 46 * @note Use this if you use backchannels (testlib/bsim/sync.h). 51 * @param ... format-string and arguments to print to console 61 * @brief Mark test case as passed and end execution 63 * Mark the role / test-case as "Passed" and return 0. 65 * @note DO NOT use this if you use backchannels (testlib/bsim/sync.h). [all …]
|
/Zephyr-latest/doc/build/dts/ |
D | phandles.rst | 1 .. _dt-phandles: 7 C. You can use phandles to refer to nodes in devicetree similarly to the way 8 you can use pointers to refer to structures in C. 19 .. code-block:: DTS 22 lbl_a: node-1 {}; 23 lbl_b: lbl_c: node-2 {}; 28 - ``/node-1`` as ``&lbl_a`` 29 - ``/node-2`` as either ``&lbl_b`` or ``&lbl_c`` 40 :ref:`dt-bindings-properties` in the devicetree bindings documentation. 42 Here are the main ways you will use phandles. [all …]
|
/Zephyr-latest/tests/arch/arm/arm_irq_zero_latency_levels/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 48 case STEP_MAIN_BEGIN: in execution_step_str() 51 case STEP_MAIN_END: in execution_step_str() 54 case STEP_ISR_A_BEGIN: in execution_step_str() 57 case STEP_ISR_A_END: in execution_step_str() 60 case STEP_ISR_B_BEGIN: in execution_step_str() 63 case STEP_ISR_B_END: in execution_step_str() 109 for (i = start - 1; i >= 0; i--) { in find_unused_irq() 116 * currently not in use by Zephyr. in find_unused_irq() 133 * un-pended, it is guaranteed that it in find_unused_irq() [all …]
|
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/ |
D | testcase.yaml | 4 # | Case # | Controller type | Selected mode | Example board | 5 # +--------+------------------------+----------------------+----------------+ 11 # The test-specific CONFIG_TEST_USE_CAN_FD_MODE is used to decide if the test should use 19 - can 20 - isotp 23 # case 2 26 - can 27 - isotp 29 - CONFIG_TEST_USE_CAN_FD_MODE=n 30 - CONFIG_CAN_FD_MODE=y [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | fnmatch.c | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 12 * Redistribution and use in source and binary forms, with or without 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * Function fnmatch() as specified in POSIX 1003.2-1992, section B.6. 74 * character produces unspecified results (IEEE 1003.2-1992, in rangematch() 88 return (void *)-1; in rangematch() 99 if (*pattern == '-') { in rangematch() 132 if (recursion-- == 0) { in fnmatchx() 139 case EOS: in fnmatchx() [all …]
|
/Zephyr-latest/tests/ztest/error_hook/ |
D | README.txt | 6 code writing for fatal and assert handler for error case testing. They can 13 When writing error testing case (or we call it negative test case), we might 14 have to write self-defined k_sys_fatal_handler or post_assert_handler to deal 25 How to use it in you app 52 You can choose to use one or both of them, depending on your needs. 53 If you use none of them, you can still define your own fatal or assert handler 61 If the expected error was caught, the test case will pass. 64 - To call a function then giving the condition to trigger the assert fail, 68 - start a thread to test triggering a null address dereferencing, then catch 70 - start a thread to test triggering an illegal instruction, then catch [all …]
|
/Zephyr-latest/tests/ztest/error_hook/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 24 /* test case type */ 73 /* As this test case only runs when User Mode is enabled, in trigger_fault_access() 82 * Note: this is not applicable for ARM Cortex-M: in trigger_fault_access() 83 * In Cortex-M, nPRIV read access to address 0x0 is generally allowed, in trigger_fault_access() 85 * 0x0. So, de-referencing NULL pointer is not guaranteed to trigger an in trigger_fault_access() 116 * For the Cortex-M0, M0+, M23 (CONFIG_ARMV6_M_ARMV8_M_BASELINE) in trigger_fault_divide_zero() 119 * For ARMv8-R, divide by zero trapping is not supported in hardware. in trigger_fault_divide_zero() 154 * to define the hook yourself. If not, the program will use the 161 case ZTEST_CATCH_FATAL_ACCESS: in ztest_post_fatal_error_hook() [all …]
|
/Zephyr-latest/soc/ti/simplelink/cc13x2x7_cc26x2x7/ |
D | power.c | 4 * SPDX-License-Identifier: Apache-2.0 38 /* Configuring TI Power module to not use its policy function (we use Zephyr's 79 case PM_STATE_SUSPEND_TO_IDLE: in pm_state_set() 105 case PM_STATE_STANDBY: in pm_state_set() 109 case PM_STATE_SUSPEND_TO_RAM: in pm_state_set() 111 case PM_STATE_SUSPEND_TO_DISK: in pm_state_set() 113 case PM_STATE_SOFT_OFF: in pm_state_set() 176 * in the context of Power_sleep() in any case. in PowerCC26XX_schedulerDisable() 188 * in the context of Power_sleep() in any case. in PowerCC26XX_schedulerRestore()
|
/Zephyr-latest/samples/subsys/fs/fs_sample/ |
D | README.rst | 1 .. zephyr:code-sample:: fs 3 :relevant-api: file_system_api disk_access_interface 5 Use file system API with various filesystems and storage devices. 10 This sample app demonstrates use of the file system API and uses the FAT or Ext2 file 20 Boards that by default use SD card for storage: ``arduino_mkrzero``, ``esp_wrover_kit``, 22 to run with any other board that has "zephyr,sdmmc-disk" DT node enabled. 46 .. zephyr-app-commands:: 47 :zephyr-app: samples/subsys/fs/fs_sample 54 In case when some more specific configuration is to be used for a given board, 58 .. zephyr-app-commands:: [all …]
|
/Zephyr-latest/soc/espressif/esp32c2/ |
D | vectors.S | 3 * SPDX-License-Identifier: Apache-2.0 8 #include "riscv/rvruntime-frames.h" 17 * Use 4-byte intructions here. 1 instruction = 1 entry of the table. 18 * The CPU jumps to MTVEC (i.e. the first entry) in case of an exception, 19 * and (MTVEC & 0xfffffffc) + (mcause & 0x7fffffff) * 4, in case of an interrupt. 21 * Note: for our CPU, we need to place this on a 256-byte boundary, as CPU
|