| /Zephyr-latest/drivers/dai/nxp/esai/ | 
| D | esai.c | 4  * SPDX-License-Identifier: Apache-2.0 25  *		by 1 up to 256 (configured via xPM0-xPM7). The resulting 28  *		up to 16 (configured via xFP0-xFP3). The resulting signal is 41 		LOG_ERR("got NULL clock configuration");  in esai_get_clock_rate_config() 42 		return -EINVAL;  in esai_get_clock_rate_config() 47 		return -EINVAL;  in esai_get_clock_rate_config() 52 		return -EINVAL;  in esai_get_clock_rate_config() 57 		return -EINVAL;  in esai_get_clock_rate_config() 63 		return -EINVAL;  in esai_get_clock_rate_config() 69 		return -EINVAL;  in esai_get_clock_rate_config() [all …] 
 | 
| D | esai.h | 4  * SPDX-License-Identifier: Apache-2.0 13 #include <zephyr/dt-bindings/dai/esai.h> 32 /* used to fetch the depth of the FIFO. If the "fifo-depth" property is 40 /* used to fetch the TX FIFO watermark value. If the "tx-fifo-watermark" 46 /* used to fetch the RX FIFO watermark value. If the "rx-fifo-watermark" 57 #define ESAI_TX_RX_DMA_HANDSHAKE(inst, dir)\  argument 58 	((DT_INST_DMAS_CELL_BY_NAME(inst, dir, channel) & GENMASK(7, 0)) |\ 59 	((DT_INST_DMAS_CELL_BY_NAME(inst, dir, mux) << 8) & GENMASK(15, 8))) 61 /* used to fetch the word width. If the "word-width" property is not specified, 76 #define _ESAI_SLOT_WORD_WIDTH_IS_VALID(width) (!(((width) - 8) % 4)) [all …] 
 | 
| /Zephyr-latest/scripts/west_commands/ | 
| D | build_helpers.py | 3 # SPDX-License-Identifier: Apache-2.0 18 from west.configuration import config 35 build.dir-fmt configuration variable is set. The current directory is 57     # Guess the build folder by iterating through all sub-folders from the 72             # Missing key, check sub-folders and match if a single one exists 84 def find_build_dir(dir, guess=False, **kwargs):  argument 87     The default build directory is computed by reading the build.dir-fmt 88     configuration option, defaulting to DEFAULT_BUILD_DIR if not set. It might 89     be None if the build.dir-fmt configuration option is set but cannot be 97     if dir: [all …] 
 | 
| D | run_common.py | 4 # SPDX-License-Identifier: Apache-2.0 27 from west.configuration import config 37 sys.path.insert(0, str(ZEPHYR_SCRIPTS / 'dts' / 'python-devicetree' / 'src')) 43 # Context-sensitive help indentation. 47 IGNORED_RUN_ONCE_PRIORITY = -1 52     # Using level 1 allows sub-DEBUG levels of verbosity. The 56     # https://docs.python.org/3.7/library/logging.html#logging-levels. 62     log.inf('-- ' + msg, colorize=True) 130     # Remember to update west-completion.bash if you add or remove 136     group.add_argument('-d', '--build-dir', metavar='DIR', [all …] 
 | 
| /Zephyr-latest/drivers/dai/nxp/sai/ | 
| D | sai.c | 4  * SPDX-License-Identifier: Apache-2.0 53 	cfg = dev->config;  in sai_mclk_config() 54 	data = dev->data;  in sai_mclk_config() 56 	mclk_config.mclkOutputEnable = cfg->mclk_is_output;  in sai_mclk_config() 65 	ret = get_mclk_rate(&cfg->clk_data, bclk_source, &mclk_rate);  in sai_mclk_config() 73 	LOG_DBG("target MCLK is %u", bespoke->mclk_rate);  in sai_mclk_config() 79 	mclk_config.mclkHz = bespoke->mclk_rate;  in sai_mclk_config() 81 	/* commit configuration */  in sai_mclk_config() 82 	SAI_SetMasterClockConfig(UINT_TO_I2S(data->regmap), &mclk_config);  in sai_mclk_config() 84 	set_msel(data->regmap, msel);  in sai_mclk_config() [all …] 
 | 
| D | sai.h | 3  * SPDX-License-Identifier: Apache-2.0 51 /* used to convert the clock-names property into an array of clock names */ 72 /* used to convert a clock-names property into an array of clock names. If the 89 /* used to parse the tx-fifo-watermark property. If said property is not 97 /* used to parse the rx-fifo-watermark property. If said property is not 107 	POINTER_TO_UINT(&(UINT_TO_I2S(DT_INST_REG_ADDR(inst))->TDR[idx])) 111 	POINTER_TO_UINT(&(UINT_TO_I2S(DT_INST_REG_ADDR(inst))->RDR[idx])) 146 #define SAI_TX_RX_DMA_HANDSHAKE(inst, dir)\  argument 147 	((DT_INST_DMAS_CELL_BY_NAME(inst, dir, channel) & GENMASK(7, 0)) |\ 148 	 ((DT_INST_DMAS_CELL_BY_NAME(inst, dir, mux) << 8) & GENMASK(15, 8))) [all …] 
 | 
| /Zephyr-latest/samples/basic/minimal/ | 
| D | README.rst | 1 .. zephyr:code-sample:: minimal 9 This sample provides an empty ``main()`` and various configuration files that 13 The following configuration files are available: 16 * :file:`no-mt.conf`: Disable multithreading 17 * :file:`no-preempt.conf`: Disable preemption 18 * :file:`no-timers.conf`: Disable timers 19 * :file:`arm.conf`: Arm-specific disabling of features 29   * Reference ROM size: 7-8KB 31   .. zephyr-app-commands:: 32      :zephyr-app: samples/basic/minimal [all …] 
 | 
| /Zephyr-latest/dts/bindings/stepper/allegro/ | 
| D | allegro,a4979.yml | 1 # SPDX-FileCopyrightText: Copyright (c) 2025 Carl Zeiss Meditec AG 2 # SPDX-License-Identifier: Apache-2.0 6   A4979 is a flexible microstepping motor driver with built-in translator for easy operation. 7   It is designed to operate bipolar stepper motors in full-, half-, quarter-, and sixteenth-step 14       micro-step-res = <2>; 15       reset-gpios = <&gpiod 10 GPIO_ACTIVE_HIGH>; 16       dir-gpios = <&gpiod 14 GPIO_ACTIVE_HIGH>; 17       step-gpios = <&gpiod 15 GPIO_ACTIVE_HIGH>; 18       en-gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>; 19       m0-gpios = <&gpiod 13 0>; [all …] 
 | 
| /Zephyr-latest/dts/bindings/stepper/ti/ | 
| D | ti,drv8424.yaml | 1 # SPDX-FileCopyrightText: Copyright (c) 2024 Navimatix GmbH 2 # SPDX-License-Identifier: Apache-2.0 18     dir-gpios = <&arduino_header 18 0>; 19     step-gpios = <&arduino_header 19 0>; 20     sleep-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; 21     en-gpios  = <&arduino_header 14 0>; 22     m0-gpios = <&mikroe_stepper_gpios 0 0>; 23     m1-gpios = <&mikroe_stepper_gpios 1 0>; 31   - name: stepper-controller.yaml 32     property-allowlist: [all …] 
 | 
| /Zephyr-latest/scripts/net/ | 
| D | run-sample-tests.sh | 3 # SPDX-License-Identifier: Apache-2.0 5 image=net-tools 6 name=net-tools 7 network=net-tools0 10 configuration="" 14 docker_test_script_name=docker-test.sh 24     if [ -z "$ZEPHYR_BASE" ]; then 27     elif [ ! -d "$ZEPHYR_BASE" ]; then 32     if [ -z "$NET_TOOLS_BASE" ]; then 39 	        l="$d/tools/net-tools" [all …] 
 | 
| /Zephyr-latest/include/zephyr/drivers/ | 
| D | dai.h | 4  * SPDX-License-Identifier: Apache-2.0 38 /** Used to extract the clock configuration from the format attribute of struct dai_config */ 48  * clock-related configurations w.r.t the DAI 99  * different configuration data to cater for different use cases. We 100  * usually need to pass extra bespoke configuration prior to DAI start. 165 	/** @brief Optional - Pre Start the transmission / reception of data. 189 	/** @brief Optional - Post Stop the transmission / reception of data. 251  * Generic DAI interface configuration options. 264 	/** DAI specific configuration options. */ 270 	/** DAI specific link configuration. */ [all …] 
 | 
| D | i2s.h | 4  * SPDX-License-Identifier: Apache-2.0 9  * @brief Public APIs for the I2S (Inter-IC Sound) bus drivers. 20  * @brief I2S (Inter-IC Sound) Interface 23  * as common non-standard extensions such as PCM Short/Long Frame Sync, 55  *        -. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. 56  *     SCK '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' ' 57  *        -.                               .-------------------------------. 58  *     WS  '-------------------------------'                               '---- 59  *        -.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---. 61  *        -'---'---'---'---'---'---'---'---'---'---'---'---'---'---'---'---'---' [all …] 
 | 
| /Zephyr-latest/include/zephyr/drivers/pcie/endpoint/ | 
| D | pcie_ep.h | 8  * SPDX-License-Identifier: Apache-2.0 23 	PCIE_OB_LOWMEM,  /**< PCIe OB window within 32-bit address range */ 24 	PCIE_OB_HIGHMEM, /**< PCIe OB window above 32-bit address range */ 50  * interrupt-safe APIS. Registration of callbacks is done via 76 			enum xfer_direction dir); 80  * @brief Read PCIe EP configuration space 82  * @details This API reads EP's own configuration space 85  * @param offset Offset within configuration space 95 			(const struct pcie_ep_driver_api *)dev->api;  in pcie_ep_conf_read() 97 	return api->conf_read(dev, offset, data);  in pcie_ep_conf_read() [all …] 
 | 
| /Zephyr-latest/scripts/schemas/ | 
| D | build-schema.yml | 1 # SPDX-License-Identifier: Apache-2.0 18           source-dir: 20           configuration-dir: 35               - type: str 42               - type: str 43           user-files: 46               - type: str 47           extra-user-files: 50               - type: str 51           include-dirs: [all …] 
 | 
| /Zephyr-latest/drivers/gpio/ | 
| D | gpio_cy8c95xx.c | 4  * SPDX-License-Identifier: Apache-2.0 24 /** Cache of the output configuration and data of the pins. */ 26 	uint8_t dir;  member 40 /** Configuration data */ 60 	rc = i2c_reg_write_byte_dt(&cfg->i2c, CY8C95XX_REG_OUTPUT_DATA0 + cfg->port_num,  in write_pin_state() 61 				   pins->data_out);  in write_pin_state() 66 	rc = i2c_reg_write_byte_dt(&cfg->i2c, CY8C95XX_REG_PORT_SELECT, cfg->port_num);  in write_pin_state() 71 	rc = i2c_reg_write_byte_dt(&cfg->i2c, CY8C95XX_REG_DIR, pins->dir);  in write_pin_state() 76 	rc = i2c_reg_write_byte_dt(&cfg->i2c, CY8C95XX_REG_PULL_UP, pins->pull_up);  in write_pin_state() 81 	rc = i2c_reg_write_byte_dt(&cfg->i2c, CY8C95XX_REG_PULL_DOWN, pins->pull_down);  in write_pin_state() [all …] 
 | 
| D | gpio_sx1509b.c | 4  * Copyright (c) 2019-2020 Nordic Semiconductor ASA 7  * SPDX-License-Identifier: Apache-2.0 19 #include <zephyr/dt-bindings/gpio/semtech-sx1509b.h> 38 /** Cache of the output configuration and data of the pins. */ 47 	uint16_t dir;              /* 0x0E */  member 81 /** Configuration data */ 91 /* General configuration register addresses */ 119 /* Pin configuration register addresses */ 153  * @brief Write a big-endian word to an internal address of an I2C slave. 160  * @retval -EIO General input / output error. [all …] 
 | 
| /Zephyr-latest/cmake/modules/ | 
| D | configuration_files.cmake | 1 # SPDX-License-Identifier: Apache-2.0 5 # Zephyr build system configuration files. 13 # - CONF_FILE:              List of Kconfig fragments 14 # - EXTRA_CONF_FILE:        List of additional Kconfig fragments 15 # - DTC_OVERLAY_FILE:       List of devicetree overlay files 16 # - EXTRA_DTC_OVERLAY_FILE  List of additional devicetree overlay files 17 # - DTS_EXTRA_CPPFLAGS      List of additional devicetree preprocessor defines 18 # - APPLICATION_CONFIG_DIR: Root folder for application configuration 24 # use only and may be removed, renamed, or re-purposed without prior notice. 55 set(APPLICATION_CONFIG_DIR ${APPLICATION_CONFIG_DIR} CACHE PATH "The application configuration fold… [all …] 
 | 
| /Zephyr-latest/cmake/ | 
| D | llext-edk.cmake | 2 # SPDX-License-Identifier: Apache-2.0 11 # directories (build/zephyr, zephyr base, west top dir and application source 12 # dir), to avoid leaking any information about the host system. 16 #  - cmake application source-dir 17 #  - cmake board name 18 #  - cmake board qualifiers 19 #  - cmake board revision 20 #  - cmake llext-edk cflags 21 #  - cmake llext-edk file 22 #  - cmake llext-edk include-dirs [all …] 
 | 
| /Zephyr-latest/scripts/native_simulator/ | 
| D | Makefile | 2 # SPDX-License-Identifier: Apache-2.0 11 # The caller can provide an optional configuration file and point to it with NSI_CONFIG_FILE 18 -include ${NSI_CONFIG_FILE} 34 #  Host architecture configuration switch 35 NSI_ARCH?=-m32 37 NSI_COVERAGE?=--coverage 61 NSI_DEBUG?=-g 63 NSI_OPT?=-O0 65 NSI_WARNINGS?=-Wall -Wpedantic 67 NSI_CPPFLAGS?=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED [all …] 
 | 
| /Zephyr-latest/share/sysbuild/cmake/modules/ | 
| D | sysbuild_images.cmake | 3 # SPDX-License-Identifier: Apache-2.0 17       list(APPEND info_image_list MAP "name: ${image}, source-dir: ${SOURCE_DIR}, type: ${type}") 19       list(APPEND info_image_list MAP "name: ${image}, source-dir: ${source_dir}") 24   # even in the event that one or more image fails configuration stage. 32 # This is where all Zephyr applications are added to the multi-image build.
  | 
| /Zephyr-latest/doc/develop/west/ | 
| D | build-flash-debug.rst | 1 .. _west-build-flash-debug: 6 Zephyr provides several :ref:`west extension commands <west-extensions>` for 11 commands, see :ref:`flash-and-debug-support` in the board porting guide. 13 .. Add a per-page contents at the top of the page. This page is nested 21 .. _west-building: 26 .. tip:: Run ``west build -h`` for a quick overview. 29 use :ref:`west config <west-config-cmd>` to configure its behavior. 33 - If there is a Zephyr build directory named :file:`build` in your current 34   working directory, it is incrementally re-compiled. The same is true if you 37 - Otherwise, if you run ``west build`` from a Zephyr application's source [all …] 
 | 
| /Zephyr-latest/drivers/i2s/ | 
| D | i2s_mcux_flexcomm.c | 4  * SPDX-License-Identifier: Apache-2.0 24 /* Device constant configuration parameters */ 68 					 enum i2s_dir dir,  in i2s_mcux_flexcomm_cfg_convert()  argument 72 	if (dir == I2S_DIR_RX) {  in i2s_mcux_flexcomm_cfg_convert() 74 	} else if (dir == I2S_DIR_TX) {  in i2s_mcux_flexcomm_cfg_convert() 78 	fsl_cfg->dataLength = i2s_cfg->word_size;  in i2s_mcux_flexcomm_cfg_convert() 79 	if ((i2s_cfg->format & I2S_FMT_DATA_FORMAT_MASK) ==  in i2s_mcux_flexcomm_cfg_convert() 82 		fsl_cfg->frameLength = 2 * i2s_cfg->word_size;  in i2s_mcux_flexcomm_cfg_convert() 84 		fsl_cfg->frameLength = i2s_cfg->channels * i2s_cfg->word_size;  in i2s_mcux_flexcomm_cfg_convert() 87 	if (fsl_cfg->dataLength < 4 || fsl_cfg->dataLength > 32) {  in i2s_mcux_flexcomm_cfg_convert() [all …] 
 | 
| D | i2s_litex.c | 4  * SPDX-License-Identifier: Apache-2.0 22 		val = (val == max - 1) ? 0 : val + 1;                          \ 79 	return -EINVAL;  in i2s_get_foramt() 185 	int max_off = chan_size - 1;  in i2s_copy_from_fifo() 189 		for (int off = max_off; off >= 0; off--) {  in i2s_copy_from_fifo() 191 			*(dst + i * chan_size + (max_off - off)) =  in i2s_copy_from_fifo() 236 	int max_off = chan_size - 1;  in i2s_copy_to_fifo() 241 		for (int off = max_off; off >= 0; off--) {  in i2s_copy_to_fifo() 244 				*(src + i * chan_size + (max_off - off));  in i2s_copy_to_fifo() 269 	if (rb->tail == rb->head) {  in queue_get() [all …] 
 | 
| /Zephyr-latest/samples/subsys/fs/littlefs/ | 
| D | README.rst | 1 .. zephyr:code-sample:: littlefs 3    :relevant-api: file_system_api flash_area_api 24 ------------------- 32    [00:00:00.010,559] <err> littlefs: Corrupted dir pair at 0 1 33    [00:00:00.010,559] <wrn> littlefs: can't mount (LFS -84); formatting 40    [00:00:00.867,034] <err> fs: failed get file or dir stat (-2) 46 --------------------------- 52    https://www.thevtool.com/mounting-littlefs-on-linux-machine/ 54 .. code-block:: console 57 …lfs -d -s -f --read_size=512 --prog_size=512 --block_size=512 --cache_size=512 --lookahead_size=81… [all …] 
 | 
| /Zephyr-latest/share/zephyr-package/cmake/ | 
| D | zephyr_package_search.cmake | 1 # The purpose of this file is to provide search mechanism for locating Zephyr in-work-tree package 6 # Relative directory of workspace project dir as seen from Zephyr package file 9 # Relative directory of Zephyr dir as seen from Zephyr package file 12 # This function updates Zephyr_DIR to the point to the candidate dir. 14 # `Zephyr_DIR-NOTFOUND` or pointing to the Zephyr package including the 22         "The directory containing a CMake configuration file for Zephyr." FORCE 43 # - ZEPHYR_BASE                : Use the specified ZEPHYR_BASE directly. 44 # - WORKSPACE_DIR              : Search for projects in specified  workspace. 45 # - SEARCH_PARENTS             : Search parent folder of current source file (application) 46 #                                to locate in-project-tree Zephyr candidates. [all …] 
 |