| /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/include/zephyr/bluetooth/audio/ | 
| D | pacs.h | 7  * Copyright (c) 2021-2024 Nordic Semiconductor ASA 9  * SPDX-License-Identifier: Apache-2.0 71 	 * @brief Enables or disables registration of Source PAC Characteristic. 78 	 * @brief Enables or disables registration of Source Location Characteristic. 80 	 * Registration of Source Location is dependent on @ref bt_pacs_register_param.src_pac 105  * @param dir Direction of the endpoint to look capability for. 109 void bt_pacs_cap_foreach(enum bt_audio_dir dir, 119  * @retval -EINVAL @p param is NULL or bad combination of values in @p param 120  * @retval -EALREADY Already registered 121  * @retval -ENOEXEC Request was rejected by GATT [all …] 
 | 
| /Zephyr-latest/share/sysbuild/ | 
| D | CMakeLists.txt | 1 # Copyright (c) 2021-2023 Nordic Semiconductor 3 # SPDX-License-Identifier: Apache-2.0 13 # on current working dir. 14 set(APP_DIR ${APP_DIR} CACHE PATH "Main Application Source Directory") 15 set(Sysbuild_DIR ${CMAKE_CURRENT_LIST_DIR}/../sysbuild-package/cmake) 30 build_info(application source-dir VALUE ${CMAKE_CURRENT_SOURCE_DIR})
  | 
| /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/samples/bluetooth/cap_acceptor/src/ | 
| D | cap_acceptor.h | 4  * SPDX-License-Identifier: Apache-2.0 19 	/** Stream for the source endpoint */ 23 	/** Semaphore to help wait for a release operation if the source stream is not idle */ 39  * @retval -ENOEXEC if callbacks failed to be registered 47  * @retval -ENOEXEC if callbacks failed to be registered 54  * @param dir Audio direction of the stream to allocate 57  * @retval NULL if no more CAP streams for the @p dir could be allocated 59 struct bt_cap_stream *stream_alloc(enum bt_audio_dir dir);
  | 
| /Zephyr-latest/ | 
| D | zephyr-env.sh | 4 # SPDX-License-Identifier: Apache-2.0 15 if [ -n "${ZSH_VERSION:-}" ]; then 16 	dir="${(%):-%N}" 19 		name=$(basename -- "$0") 22 		name=$(basename -- "$0") 25 	dir="${BASH_SOURCE[0]}" 26 	name=$(basename -- "$0") 29 if [ "X$name" "==" "Xzephyr-env.sh" ]; then 30     echo "Source this file (do NOT execute it!) to set the Zephyr Kernel environment." 38 if uname | grep -q "MINGW"; then [all …] 
 | 
| /Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/ | 
| D | hardware_adapter_test.py | 3 # SPDX-License-Identifier: Apache-2.0 18 def fixture_adapter(tmp_path) -> HardwareAdapter: 33 …rdware_adapter_raise_exception_when_west_not_found(patched_which, device: HardwareAdapter) -> None: 39 def test_if_get_command_returns_proper_string_1(patched_which, device: HardwareAdapter) -> None: 43 …assert device.command == ['west', 'flash', '--skip-rebuild', '--build-dir', 'build', '--runner', '… 47 def test_if_get_command_returns_proper_string_2(patched_which, device: HardwareAdapter) -> None: 53 …'west', 'flash', '--skip-rebuild', '--build-dir', 'build', '--runner', 'pyocd', '--', '--board-id'… 58 def test_if_get_command_returns_proper_string_3(patched_which, device: HardwareAdapter) -> None: 64 …'west', 'flash', '--skip-rebuild', '--build-dir', 'build', '--runner', 'nrfjprog', '--', '--dev-id… 69 def test_if_get_command_returns_proper_string_4(patched_which, device: HardwareAdapter) -> None: [all …] 
 | 
| /Zephyr-latest/drivers/dai/nxp/sai/ | 
| D | sai.c | 4  * SPDX-License-Identifier: Apache-2.0 35  * register. As such, the MCLK source field of sai_master_clock_t is 36  * useless. I'm assuming the source is selected through xCR2's MSEL. 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() 60 		LOG_ERR("invalid MCLK source %d for MSEL", bclk_source);  in sai_mclk_config() 65 	ret = get_mclk_rate(&cfg->clk_data, bclk_source, &mclk_rate);  in sai_mclk_config() 71 	LOG_DBG("source MCLK is %u", mclk_rate);  in sai_mclk_config() 73 	LOG_DBG("target MCLK is %u", bespoke->mclk_rate);  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/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}") 32 # This is where all Zephyr applications are added to the multi-image build.
  | 
| /Zephyr-latest/samples/subsys/fs/fs_sample/ | 
| D | Kconfig | 5 # SPDX-License-Identifier: Apache-2.0 15 	  "some.dir" directory and "other.txt" file will be created 17 	  showing how file system works on non-SD devices like internal 21 source "Kconfig.zephyr"
  | 
| /Zephyr-latest/scripts/west_commands/completion/ | 
| 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=( 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}) 42   if [[ -v WEST_COMP_CHECK_WORKSPACE ]]; then 44     if [ $? -eq 0 ]; then [all …] 
 | 
| /Zephyr-latest/drivers/dai/nxp/esai/ | 
| 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/drivers/i2s/ | 
| D | i2s_nrfx.c | 4  * SPDX-License-Identifier: Apache-2.0 81 		(NRF_I2S_HAS_CLKCONFIG && drv_cfg->clk_src == ACLK)  in find_suitable_clock() 83 		 * make sure that the ACLK clock source is only used when it is  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() [all …] 
 | 
| /Zephyr-latest/subsys/bluetooth/audio/ | 
| D | pacs.c | 7  * Copyright (c) 2022-2023 Nordic Semiconductor ASA 9  * SPDX-License-Identifier: Apache-2.0 101 	/* Source Available Contexts override value */ 159 	const struct bt_audio_codec_cap *codec_cap = cap->codec_cap;  in build_pac_records() 160 	struct net_buf_simple *buf = data->buf;  in build_pac_records() 171 	pac_codec->id = codec_cap->id;  in build_pac_records() 172 	pac_codec->cid = sys_cpu_to_le16(codec_cap->cid);  in build_pac_records() 173 	pac_codec->vid = sys_cpu_to_le16(codec_cap->vid);  in build_pac_records() 175 	if (net_buf_simple_tailroom(buf) < (sizeof(struct bt_pac_ltv_data) + codec_cap->data_len)) {  in build_pac_records() 179 	net_buf_simple_add_u8(buf, codec_cap->data_len);  in build_pac_records() [all …] 
 | 
| D | audio_internal.h | 6  * SPDX-License-Identifier: Apache-2.0 57 	(((struct bt_audio_attr_user_data *)(_attr)->user_data)->user_data) 69 static inline const char *bt_audio_dir_str(enum bt_audio_dir dir)  in bt_audio_dir_str()  argument 71 	switch (dir) {  in bt_audio_dir_str() 75 		return "source";  in bt_audio_dir_str()
  | 
| /Zephyr-latest/tests/subsys/fs/fs_api/src/ | 
| D | test_fs_dir_file.c | 5  * SPDX-License-Identifier: Apache-2.0 149 	zassert_not_equal(ret, 0, "Mount to an invalid dir");  in test_mount() 151 	zassert_not_equal(ret, 0, "Mount dir name too short");  in test_mount() 162 	zassert_not_equal(ret, 0, "Mount to a mounted dir");  in test_mount() 166 	zassert_equal(ret, -EBUSY, "Re-mount using same data should have failed");  in test_mount() 242 	zassert_not_equal(ret, 0, "Get volume info by no-exist path");  in ZTEST() 246 	zassert_equal(ret, -ENOTSUP, "fs has no statvfs functionality");  in ZTEST() 272 	zassert_not_equal(ret, 0, "Create dir with too short name");  in test_mkdir() 275 	zassert_not_equal(ret, 0, "Create dir with wrong path");  in test_mkdir() 278 	zassert_not_equal(ret, 0, "Create dir in no fs mounted dir");  in test_mkdir() [all …] 
 | 
| /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. 28 The ``build`` command helps you build Zephyr applications from source. You can 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 [all …] 
 | 
| /Zephyr-latest/scripts/west_commands/ | 
| D | build.py | 3 # SPDX-License-Identifier: Apache-2.0 22 _ARG_SEPARATOR = '--' 30 west build [-h] [-b BOARD[@REV]]] [-d BUILD_DIR] 31            [-S SNIPPET] [--shield SHIELD] 32            [-t TARGET] [-p {auto, always, never}] [-c] [--cmake-only] 33            [-n] [-o BUILD_OPT] [-f] 34            [--sysbuild | --no-sysbuild] [--domain DOMAIN] 35            [--extra-conf FILE.conf] 36            [--extra-dtc-overlay FILE.overlay] 37            [source_dir] -- [cmake_opt [cmake_opt ...]] [all …] 
 | 
| /Zephyr-latest/cmake/modules/ | 
| D | dts.cmake | 1 # SPDX-License-Identifier: Apache-2.0 15 #   - To Zephyr and application source code files, as a C macro API 18 #   - To other arbitrary Python scripts (like twister) using a 22 #   - To users as a final devicetree source (DTS) file which can 25 #   - To CMake files, after this module has finished running, using 28 #   - To Kconfig files, both using some Kconfig symbols we generate 44 #    - The pre_dt module has been included; refer to its outcome 46 #    - DTS_SOURCE: set to the path to the devicetree file which 48 #    - ${BINARY_DIR_INCLUDE_GENERATED}/devicetree_generated.h exists 53 #    - CACHED_DTS_ROOT_BINDINGS is set in the cache to the [all …] 
 | 
| /Zephyr-latest/drivers/spi/ | 
| D | spi_andes_atcspi200.c | 4  * SPDX-License-Identifier: Apache-2.0 61 	const struct spi_atcspi200_cfg * const cfg = dev->config;  in spi_config() 65 	sclk_div = (cfg->f_sys / (config->frequency << 1)) - 1;  in spi_config() 66 	sys_clear_bits(SPI_TIMIN(cfg->base), TIMIN_SCLK_DIV_MSK);  in spi_config() 67 	sys_set_bits(SPI_TIMIN(cfg->base), sclk_div);  in spi_config() 70 	sys_clear_bits(SPI_TFMAT(cfg->base), TFMAT_SLVMODE_MSK);  in spi_config() 73 	sys_clear_bits(SPI_TFMAT(cfg->base), TFMAT_DATA_MERGE_MSK);  in spi_config() 76 	data_len = SPI_WORD_SIZE_GET(config->operation) - 1;  in spi_config() 77 	sys_clear_bits(SPI_TFMAT(cfg->base), TFMAT_DATA_LEN_MSK);  in spi_config() 78 	sys_set_bits(SPI_TFMAT(cfg->base), (data_len << TFMAT_DATA_LEN_OFFSET));  in spi_config() [all …] 
 | 
| /Zephyr-latest/samples/bluetooth/cap_initiator/src/ | 
| D | cap_initiator_unicast.c | 4  * SPDX-License-Identifier: Apache-2.0 42 /* We use the same config for both sink and source streams 53 	/** Stream for the source endpoint */ 57 	/** Semaphore to help wait for a release operation if the source stream is not idle */ 61 	/** Reference to the endpoint for the source stream */ 84 	err = bt_bap_ep_get_info(stream->ep, &ep_info);  in is_tx_stream() 91 	return ep_info.dir == BT_AUDIO_DIR_SINK;  in is_tx_stream() 105 		pref->unframed_supported ? "supported" : "not supported", pref->phy, pref->rtn,  in unicast_stream_configured_cb() 106 		pref->latency, pref->pd_min, pref->pd_max, pref->pref_pd_min, pref->pref_pd_max);  in unicast_stream_configured_cb() 179 	 * (see the `info->flags` for which flags to check),  in unicast_stream_recv_cb() [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 43 #  Extra source files to be built in the runner context 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 69 NO_PIE_CO:=-fno-pie -fno-pic [all …] 
 | 
| /Zephyr-latest/tests/bsim/bluetooth/audio/src/ | 
| D | gmap_ugg_test.c | 2  * Copyright (c) 2023-2025 Nordic Semiconductor ASA 4  * SPDX-License-Identifier: Apache-2.0 132 const struct named_lc3_preset *gmap_get_named_preset(bool is_unicast, enum bt_audio_dir dir,  in gmap_get_named_preset()  argument 136 		if (dir == BT_AUDIO_DIR_SINK) {  in gmap_get_named_preset() 142 		} else if (dir == BT_AUDIO_DIR_SOURCE) {  in gmap_get_named_preset() 185 	memset(&test_stream->last_info, 0, sizeof(test_stream->last_info));  in stream_started_cb() 186 	test_stream->rx_cnt = 0U;  in stream_started_cb() 187 	test_stream->valid_rx_cnt = 0U;  in stream_started_cb() 188 	test_stream->seq_num = 0U;  in stream_started_cb() 189 	test_stream->tx_cnt = 0U;  in stream_started_cb() [all …] 
 | 
| D | bap_unicast_server_test.c | 2  * Copyright (c) 2021-2023 Nordic Semiconductor ASA 4  * SPDX-License-Identifier: Apache-2.0 82 	printk("ASE info: id %u state %u dir %u\n", info.id, info.state, info.dir);  in print_ase_info() 90 		if (!stream->conn) {  in stream_alloc() 98 static int lc3_config(struct bt_conn *conn, const struct bt_bap_ep *ep, enum bt_audio_dir dir,  in lc3_config()  argument 102 	printk("ASE Codec Config: conn %p ep %p dir %u\n", conn, ep, dir);  in lc3_config() 110 		return -ENOMEM;  in lc3_config() 124 static int lc3_reconfig(struct bt_bap_stream *stream, enum bt_audio_dir dir,  in lc3_reconfig()  argument 134 	return -ENOEXEC;  in lc3_reconfig() 146 	test_stream->tx_sdu_size = qos->sdu;  in lc3_qos() [all …] 
 |