Home
last modified time | relevance | path

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

12345

/Zephyr-latest/cmake/
Dllext-edk.cmake2 # 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.
15 # - llext_edk_name: Name of the extension, used to name the tarball and the
17 # - INTERFACE_INCLUDE_DIRECTORIES: List of include directories to copy headers
20 # - llext_edk_file: Output file name for the tarball.
21 # - llext_edk_cflags: Flags to be used for source compile commands.
22 # - ZEPHYR_BASE: Path to the zephyr base directory.
23 # - WEST_TOPDIR: Path to the west top directory.
24 # - APPLICATION_SOURCE_DIR: Path to the application source directory.
[all …]
/Zephyr-latest/share/sysbuild/
DCMakeLists.txt1 # 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/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor.h4 * 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/scripts/pylib/pytest-twister-harness/tests/device/
Dhardware_adapter_test.py3 # 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/
Dzephyr-env.sh4 # 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/drivers/dai/nxp/sai/
Dsai.c4 * 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 …]
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/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/samples/subsys/fs/fs_sample/
DKconfig5 # 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/
Dwest-completion.zsh4 # 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/
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/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.
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/subsys/bluetooth/audio/
Dpacs.c7 * Copyright (c) 2022-2023 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
89 /* Source Available Contexts override value */
142 const struct bt_audio_codec_cap *codec_cap = cap->codec_cap; in build_pac_records()
143 struct net_buf_simple *buf = data->buf; in build_pac_records()
154 pac_codec->id = codec_cap->id; in build_pac_records()
155 pac_codec->cid = sys_cpu_to_le16(codec_cap->cid); in build_pac_records()
156 pac_codec->vid = sys_cpu_to_le16(codec_cap->vid); in build_pac_records()
158 if (net_buf_simple_tailroom(buf) < (sizeof(struct bt_pac_ltv_data) + codec_cap->data_len)) { in build_pac_records()
162 net_buf_simple_add_u8(buf, codec_cap->data_len); in build_pac_records()
[all …]
Daudio_internal.h6 * 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()
Dbap_unicast_client.c7 * Copyright (c) 2022-2023 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
56 "CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT shall be non-zero");
68 #define PAC_DIR_UNUSED(dir) ((dir) != BT_AUDIO_DIR_SINK && (dir) != BT_AUDIO_DIR_SOURCE) argument
124 enum bt_audio_dir dir; member
161 if (ep->receiver_ready != true || ep->dir != BT_AUDIO_DIR_SOURCE) { in unicast_client_send_start()
163 ep, ep->receiver_ready, bt_audio_dir_str(ep->dir)); in unicast_client_send_start()
165 return -EINVAL; in unicast_client_send_start()
172 buf = bt_bap_unicast_client_ep_create_pdu(ep->stream->conn, BT_ASCS_START_OP); in unicast_client_send_start()
175 return -EBUSY; in unicast_client_send_start()
[all …]
/Zephyr-latest/drivers/i2s/
Di2s_nrfx.c4 * 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/tests/subsys/fs/fs_api/src/
Dtest_fs_dir_file.c5 * 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/scripts/west_commands/
Dbuild.py3 # 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/
Ddts.cmake1 # 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/
Dspi_andes_atcspi200.c4 * 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/
Dcap_initiator_unicast.c4 * 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/tests/bsim/bluetooth/audio/src/
Dgmap_ugg_test.c2 * Copyright (c) 2023-2024 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
45 * required to place the AUX_ADV_IND PDUs in a non-overlapping interval with the
142 const struct named_lc3_preset *gmap_get_named_preset(bool is_unicast, enum bt_audio_dir dir, in gmap_get_named_preset() argument
146 if (dir == BT_AUDIO_DIR_SINK) { in gmap_get_named_preset()
152 } else if (dir == BT_AUDIO_DIR_SOURCE) { in gmap_get_named_preset()
332 printk("Conn %p: Source #%zu: ep %p\n", conn, i, ep); in add_remote_source_ep()
339 static void bap_pac_record_cb(struct bt_conn *conn, enum bt_audio_dir dir, in bap_pac_record_cb() argument
342 printk("conn %p codec_cap %p dir 0x%02x\n", conn, codec_cap, dir); in bap_pac_record_cb()
347 static void bap_endpoint_cb(struct bt_conn *conn, enum bt_audio_dir dir, struct bt_bap_ep *ep) in bap_endpoint_cb() argument
[all …]
Dbap_unicast_server_test.c2 * Copyright (c) 2021-2023 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
95 printk("ASE info: id %u state %u dir %u\n", info.id, info.state, info.dir); in print_ase_info()
103 if (!stream->conn) { in stream_alloc()
111 static int lc3_config(struct bt_conn *conn, const struct bt_bap_ep *ep, enum bt_audio_dir dir, in lc3_config() argument
115 printk("ASE Codec Config: conn %p ep %p dir %u\n", conn, ep, dir); in lc3_config()
123 return -ENOMEM; in lc3_config()
137 static int lc3_reconfig(struct bt_bap_stream *stream, enum bt_audio_dir dir, in lc3_reconfig() argument
147 return -ENOEXEC; in lc3_reconfig()
159 test_stream->tx_sdu_size = qos->sdu; in lc3_qos()
[all …]
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/
Dmain.c2 * Copyright (c) 2021-2024 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
80 while (len-- != 0) { in print_hex()
89 printk("%s: type 0x%02x value_len %u\n", str, data->type, data->data_len); in print_cb()
90 print_hex(data->data, data->data_len); in print_cb()
98 printk("codec id 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cap->id, codec_cap->cid, in print_codec_cap()
99 codec_cap->vid, codec_cap->data_len); in print_codec_cap()
101 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap()
102 bt_audio_data_parse(codec_cap->data, codec_cap->data_len, print_cb, "data"); in print_codec_cap()
105 print_hex(codec_cap->data, codec_cap->data_len); in print_codec_cap()
[all …]
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/uut/
Dbap_unicast_client.c5 * SPDX-License-Identifier: Apache-2.0
35 if (stream == NULL || stream->ep == NULL || codec_cfg == NULL) { in bt_bap_unicast_client_config()
36 return -EINVAL; in bt_bap_unicast_client_config()
39 switch (stream->ep->status.state) { in bt_bap_unicast_client_config()
44 return -EINVAL; in bt_bap_unicast_client_config()
47 if (unicast_client_cb != NULL && unicast_client_cb->config != NULL) { in bt_bap_unicast_client_config()
48 unicast_client_cb->config(stream, BT_BAP_ASCS_RSP_CODE_SUCCESS, in bt_bap_unicast_client_config()
52 stream->ep->status.state = BT_BAP_EP_STATE_CODEC_CONFIGURED; in bt_bap_unicast_client_config()
54 if (stream->ops != NULL && stream->ops->configured != NULL) { in bt_bap_unicast_client_config()
57 stream->ops->configured(stream, &pref); in bt_bap_unicast_client_config()
[all …]

12345