Home
last modified time | relevance | path

Searched +full:configuration +full:- +full:dir (Results 1 – 25 of 125) sorted by relevance

12345

/Zephyr-latest/drivers/dai/nxp/esai/
Desai.c4 * 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 …]
Desai.h4 * 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/
Dbuild_helpers.py3 # 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 …]
Drun_common.py4 # SPDX-License-Identifier: Apache-2.0
26 from west.configuration import config
35 sys.path.insert(0, str(ZEPHYR_SCRIPTS / 'dts' / 'python-devicetree' / 'src'))
41 # Context-sensitive help indentation.
45 IGNORED_RUN_ONCE_PRIORITY = -1
50 # Using level 1 allows sub-DEBUG levels of verbosity. The
54 # https://docs.python.org/3.7/library/logging.html#logging-levels.
60 log.inf('-- ' + msg, colorize=True)
121 # Remember to update west-completion.bash if you add or remove
127 group.add_argument('-d', '--build-dir', metavar='DIR',
[all …]
/Zephyr-latest/drivers/dai/nxp/sai/
Dsai.c4 * 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 …]
Dsai.h3 * 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/
DREADME.rst1 .. 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/ti/
Dti,drv8424.yaml1 # 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/
Drun-sample-tests.sh3 # 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/
Ddai.h4 * 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.
164 /** @brief Optional - Pre Start the transmission / reception of data.
188 /** @brief Optional - Post Stop the transmission / reception of data.
250 * Generic DAI interface configuration options.
263 /** DAI specific configuration options. */
269 /** DAI specific link configuration. */
[all …]
Di2s.h4 * 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/
Dpcie_ep.h8 * 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/drivers/gpio/
Dgpio_cy8c95xx.c4 * 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 …]
Dgpio_sx1509b.c4 * 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/scripts/schemas/
Dbuild-schema.yml1 # 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/cmake/modules/
Dconfiguration_files.cmake1 # 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.
59 set(APPLICATION_CONFIG_DIR ${APPLICATION_CONFIG_DIR} CACHE PATH "The application configuration fold…
[all …]
/Zephyr-latest/doc/develop/west/
Dbuild-flash-debug.rst1 .. _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/scripts/native_simulator/
DMakefile2 # 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
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
[all …]
/Zephyr-latest/drivers/i2s/
Di2s_mcux_flexcomm.c4 * 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 …]
Di2s_litex.c4 * 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 …]
Di2s_nrfx.c4 * SPDX-License-Identifier: Apache-2.0
81 (NRF_I2S_HAS_CLKCONFIG && drv_cfg->clk_src == ACLK) in find_suitable_clock()
84 * available and only with the "hfclkaudio-frequency" property in find_suitable_clock()
91 uint32_t bits_per_frame = 2 * i2s_cfg->word_size; in find_suitable_clock()
105 i2s_cfg->frame_clk_freq * ratios[r].ratio_val; in find_suitable_clock()
125 uint32_t diff = lrck_freq >= i2s_cfg->frame_clk_freq in find_suitable_clock()
126 ? (lrck_freq - i2s_cfg->frame_clk_freq) in find_suitable_clock()
127 : (i2s_cfg->frame_clk_freq - lrck_freq); in find_suitable_clock()
161 lrck_freq >= i2s_cfg->frame_clk_freq in find_suitable_clock()
162 ? (lrck_freq - i2s_cfg->frame_clk_freq) in find_suitable_clock()
[all …]
/Zephyr-latest/samples/subsys/fs/littlefs/
DREADME.rst1 .. 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/
Dzephyr_package_search.cmake1 # 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 …]
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dcap.rst9 The Acceptor will typically be a resource-constrained device, such as a headset, earbud or hearing
20 .. code-block:: console
23 cap_acceptor --help
24 cap_acceptor - Bluetooth CAP acceptor shell commands
27 [rank <int>] [not-lockable] [sirk <data>]
39 ------------------
42 :code:`bt adv-data` or :code:`bt advertise` must be called again to set the new advertising data.
46 .. code-block:: console
52 ------------------------
56 .. code-block:: console
[all …]
/Zephyr-latest/subsys/emul/espi/
Demul_espi_host.c4 * SPDX-License-Identifier: Apache-2.0
30 uint8_t dir; member
66 /** Run-time data used by the emulator */
73 * With multi-slaves config, the states should be saved per slave */
81 /** Static configuration for the emulator */
85 /* eSPI chip-select of the emulated device */
100 data->vw_state[i] = vw_state_default[i]; in emul_host_init_vw_state()
111 * @return -1 if not found
119 if (data->vw_state[idx].sig == vw) { in emul_host_find_index()
124 return -1; in emul_host_find_index()
[all …]

12345