Home
last modified time | relevance | path

Searched +full:1 +full:- +full:a (Results 1 – 25 of 1094) sorted by relevance

12345678910>>...44

/Zephyr-latest/tests/bluetooth/addr/src/
Dtest_bt_addr_le_eq.c2 * SPDX-License-Identifier: Apache-2.0
12 bt_addr_le_t a = {.type = 0, .a = {{0, 0, 0, 0, 0, 0}}}; in ZTEST() local
13 bt_addr_le_t b = a; in ZTEST()
15 zassert_true(bt_addr_le_eq(&a, &b)); in ZTEST()
20 bt_addr_le_t a = {.type = 1, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST() local
21 bt_addr_le_t b = a; in ZTEST()
23 zassert_true(bt_addr_le_eq(&a, &b)); in ZTEST()
28 bt_addr_le_t a = {.type = 0, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST() local
29 bt_addr_le_t b = a; in ZTEST()
31 zassume_true(bt_addr_le_eq(&a, &b)); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dutil_internal.h2 * Copyright (c) 2011-2014, Wind River Systems, Inc.
5 * SPDX-License-Identifier: Apache-2.0
22 /* This is called from IS_ENABLED(), and sticks on a "_XXXX" prefix,
23 * it will now be "_XXXX1" if config_macro is "1", or just "_XXXX" if it's
30 /* Here's the core trick, we map "_XXXX1" to "_YYYY," (i.e. a string
31 * with a trailing comma), so it has the effect of making this a
32 * two-argument tuple to the preprocessor only in the case where the
33 * value is defined to "1"
34 * ENABLED: _YYYY, <--- note comma!
40 * accepting it as a varargs macro.
[all …]
/Zephyr-latest/lib/libc/minimal/source/stdlib/
Dqsort.c4 * SPDX-License-Identifier: Apache-2.0
14 * Normally parent is defined parent(k) = floor((k-1) / 2) but we can avoid a
15 * divide by noticing that floor((k-1) / 2) = ((k - 1) >> 1).
18 #define parent(k) (((k) - 1) >> 1)
20 * Normally left is defined left(k) = (2 * k + 1) but we can avoid a
21 * multiply by noticing that (2 * k + 1) = ((k << 1) + 1).
24 #define left(k) (((k) << 1) + 1)
27 * Normally right is defined right(k) = (2 * k + 2) but we can avoid a
28 * multiply by noticing that right(k) = left(k) + 1
30 #define right(k) (left(k) + 1)
[all …]
/Zephyr-latest/samples/subsys/fs/zms/
DREADME.rst1 .. zephyr:code-sample:: zms
3 :relevant-api: zms_high_level_api
14 #. A string representing an IP address: stored at id=1, data="192.168.1.1"
15 #. A binary blob representing a key/value pair: stored at id=0xbeefdead,
17 #. A variable (32bit): stored at id=2, data=cnt
18 #. A long set of data (128 bytes)
20 A loop is executed where we mount the storage system, and then write all set
30 * A board with flash support or native_sim target
40 .. zephyr-app-commands::
41 :zephyr-app: samples/subsys/fs/zms
[all …]
/Zephyr-latest/samples/subsys/nvs/
Dsample.yaml10 - nrf52dk/nrf52832
15 - "Id: 1, Address: 192.168.1.1"
16 - "Id: 2, Key: ff fe fd fc fb fa f9 f8"
17 - "Id: 3, Reboot_counter: (.*)"
18 - "Id: 4, Data: DATA"
19 - "Id: 5, Longarray: 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13 14 15 16 17 18 19 1a 1b \
20 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 \
21 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 \
22 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 \
23 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f"
/Zephyr-latest/scripts/kconfig/
Dkconfigfunctions.py1 # Copyright (c) 2018-2019 Linaro
4 # SPDX-License-Identifier: Apache-2.0
17 "python-devicetree", "src"))
22 doc_mode = os.environ.get('KCONFIG_DOC_MODE') == "1"
27 # The "if" handles a missing dts.
60 This function takes a 'chosen' property and treats that property as a path
62 has a "label" property and return the value of that "label". If not, we
80 This function returns "y" if /chosen contains a property named 'chosen'
92 This function takes a /chosen node property and returns the path
104 This function takes a /chosen node property and returns 'y' if the
[all …]
/Zephyr-latest/doc/hardware/peripherals/
Dw1.rst3 1-Wire Bus
9 1-Wire is a low speed half-duplex serial bus using only a single wire plus
11 Similarly to I2C, 1-Wire uses a bidirectional open-collector data line,
12 and is a single master multidrop bus. This means one master initiates all data
14 The 1-Wire bus supports longer bus lines than I2C, while it reaches speeds of up
17 over a bus length of 100 meters. Using overdrive speed, 3 nodes on a bus of
23 .. figure:: 1-Wire_bus_topology.drawio.svg
25 :alt: 1-Wire bus topology
27 A typical 1-Wire bus topology
30 .. _w1-master-api:
[all …]
/Zephyr-latest/samples/subsys/ipc/ipc_service/multi_endpoint/
DREADME.rst1 .. zephyr:code-sample:: ipc_multi_endpoint
2 :name: IPC service: Multi-endpoint
3 :relevant-api: ipc
14 .. zephyr-app-commands::
15 :zephyr-app: samples/subsys/ipc/ipc_service/multi_endpoint
19 Open a serial terminal (for example Minicom or PuTTY) and connect the board with the following sett…
24 * Stop bits: 1
29 .. code-block:: console
31 *** Booting Zephyr OS build v3.4.0-rc1-108-gccfbac8b0721 ***
32 IPC-service HOST [INST 0 - ENDP A] demo started
[all …]
/Zephyr-latest/modules/littlefs/
Dzephyr_lfs_config.h5 * SPDX-License-Identifier: BSD-3-Clause
78 /* toolchain-specific implementations. LFS_NO_INTRINSICS falls back to a more */
81 /* Min/max functions for unsigned 32-bit numbers */
82 static inline uint32_t lfs_max(uint32_t a, uint32_t b) in lfs_max() argument
84 return (a > b) ? a : b; in lfs_max()
87 static inline uint32_t lfs_min(uint32_t a, uint32_t b) in lfs_min() argument
89 return (a < b) ? a : b; in lfs_min()
92 /* Align to nearest multiple of a size */
93 static inline uint32_t lfs_aligndown(uint32_t a, uint32_t alignment) in lfs_aligndown() argument
95 return a - (a % alignment); in lfs_aligndown()
[all …]
/Zephyr-latest/include/zephyr/devicetree/
Dpinctrl.h3 * SPDX-License-Identifier: Apache-2.0
15 * @defgroup devicetree-pinctrl Pin control
21 * @brief Get a node identifier for a phandle in a pinctrl property by index
26 * pinctrl-0 = <&foo &bar>;
27 * pinctrl-1 = <&baz &blub>;
32 * DT_PINCTRL_BY_IDX(DT_NODELABEL(n), 0, 1) // DT_NODELABEL(bar)
33 * DT_PINCTRL_BY_IDX(DT_NODELABEL(n), 1, 0) // DT_NODELABEL(baz)
35 * @param node_id node with a pinctrl-'pc_idx' property
38 * @return node identifier for the phandle at index 'idx' in 'pinctrl-'pc_idx''
44 * @brief Get a node identifier from a pinctrl-0 property
[all …]
Dspi.h9 * SPDX-License-Identifier: Apache-2.0
20 * @defgroup devicetree-spi Devicetree SPI API
26 * @brief Does a SPI controller node have chip select GPIOs configured?
28 * SPI bus controllers use the "cs-gpios" property for configuring
29 * chip select GPIOs. Its value is a phandle-array which specifies the
36 * cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
46 * DT_SPI_HAS_CS_GPIOS(DT_NODELABEL(spi1)) // 1
49 * @param spi a SPI bus controller node identifier
50 * @return 1 if "spi" has a cs-gpios property, 0 otherwise
55 * @brief Number of chip select GPIOs in a SPI controller's cs-gpios property
[all …]
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/
DREADME.rst1 .. zephyr:code-sample:: nrf_bluetooth_mesh_onoff
3 :relevant-api: bt_mesh
5 Control LEDs on a mesh network using the Bluetooth Mesh OnOff model.
10 This is a simple application demonstrating a Bluetooth Mesh multi-element node.
11 Each element has a mesh onoff client and server
15 a unique UUID. It is obtained from the device address set by Nordic in the
19 The models for button 1 and LED 1 are in the node's root element.
20 The 3 remaining button/LED pairs are in elements 1 through 3.
27 If a LED server is provided with a publish address, it will
30 If a button is pressed only once within a 1 second interval, it sends an
[all …]
/Zephyr-latest/dts/bindings/pinctrl/
Dambiq,apollo4-pinctrl.yaml2 # SPDX-License-Identifier: Apache-2.0
5 The Ambiq Apollo4 pin controller is a node responsible for controlling
6 pin function selection and pin properties, such as routing a UART0 TX
19 /* You can put this in places like a board-pinctrl.dtsi file in
20 * your board directory, or a devicetree overlay in your application.
23 /* include pre-defined combinations for the SoC variant used by the board */
24 #include <dt-bindings/pinctrl/ambiq-apollo4-pinctrl.h>
33 input-enable;
38 The 'uart0_default' child node encodes the pin configurations for a
39 particular state of a device; in this case, the default (that is, active)
[all …]
/Zephyr-latest/doc/build/dts/
Dmacros.bnf7 ; --------------------------------------------------------------------
8 ; dt-macro: the top level nonterminal for a devicetree macro
10 ; A dt-macro starts with uppercase "DT_", and is one of:
12 ; - a <node-macro>, generated for a particular node
13 ; - some <other-macro>, a catch-all for other types of macros
14 dt-macro = node-macro / other-macro
16 ; --------------------------------------------------------------------
17 ; node-macro: a macro related to a node
19 ; A macro about a property value
20 node-macro = property-macro
[all …]
/Zephyr-latest/tests/kernel/fpu_sharing/generic/src/
Dfloat_regs_arc_gcc.h9 * SPDX-License-Identifier: Apache-2.0
26 * This function loads ALL floating point registers pointed to by @a regs.
27 * It is expected that a subsequent call to _store_all_float_registers()
44 "ld.ab %1, [%0, 4];\n\t" in _load_all_float_registers()
45 "sr %1, [%2];\n\t" in _load_all_float_registers()
46 "ld.ab %1, [%0, 4];\n\t" in _load_all_float_registers()
47 "sr %1, [%3];\n\t" in _load_all_float_registers()
48 "ld.ab %1, [%0, 4];\n\t" in _load_all_float_registers()
49 "sr %1, [%4];\n\t" in _load_all_float_registers()
50 "ld.ab %1, [%0, 4];\n\t" in _load_all_float_registers()
[all …]
/Zephyr-latest/include/zephyr/dt-bindings/gpio/
Ddigilent-pmod.h3 * SPDX-License-Identifier: Apache-2.0
17 * cs-gpios = <&pmod0 PMOD_SPI_CS GPIO_ACTIVE_LOW>;
19 * example_device: example-dev@0 {
20 * compatible = "vnd,spi-device";
32 * https://digilent.com/reference/_media/reference/pmod/pmod-interface-specification-1_2_0.pdf
38 * @brief IO[n] signal on a Pmod GPIO nexus node following
39 * Pmod Interface Type 1 or 1A (GPIO or expanded GPIO)
43 #define PMOD_IO(n) ((n) - 1)
48 * @brief SPI CS signal index on a Pmod GPIO nexus node.
51 #define PMOD_SPI_CS PMOD_IO(1)
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/bridge/
Dbrg_table_state_change.sh3 # SPDX-License-Identifier: Apache-2.0
10 # 1. Tester configures itself and creates subnets equal to number of non-bridge nodes.
12 # 3. Tester provisions and configures non-bridge nodes for each subnet.
13 # 4. While bridging table is empty, Tester sends a GET message to each node encrypted with primary
16 # device 1
17 # 6. Tester sends a DATA and GET messages to device 1 encrypted with primary key and verifies that
19 # 9. Tester adds a reverse entry to the bridging table to bridge traffic in the other direction from
20 # device 1 to tester.
21 # 10. Tester sends a GET message to device 1 encrypted with primary key and verifies that a STATUS
24 # entry to bridge traffic in the both directions between tester and device 1.
[all …]
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/
Dintc_esp32c3.h4 * SPDX-License-Identifier: Apache-2.0
14 * Interrupt allocation flags - These flags can be used to specify
18 /* Keep the LEVELx values as they are here; they match up with (1<<level) */
19 #define ESP_INTR_FLAG_LEVEL1 (1<<1) /* Accept a Level 1 int vector, lowest priority */
20 #define ESP_INTR_FLAG_LEVEL2 (1<<2) /* Accept a Level 2 int vector */
21 #define ESP_INTR_FLAG_LEVEL3 (1<<3) /* Accept a Level 3 int vector */
22 #define ESP_INTR_FLAG_LEVEL4 (1<<4) /* Accept a Level 4 int vector */
23 #define ESP_INTR_FLAG_LEVEL5 (1<<5) /* Accept a Level 5 int vector */
24 #define ESP_INTR_FLAG_LEVEL6 (1<<6) /* Accept a Level 6 int vector */
25 #define ESP_INTR_FLAG_NMI (1<<7) /* Accept a Level 7 int vector, highest priority */
[all …]
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_pd.h3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USB-C Power Delivery API used for USB-C drivers
31 * @brief Maximum length of a non-Extended Message in bytes.
32 * See Table 6-75 Value Parameters
39 * See Table 6-75 Value Parameters
45 * @brief Maximum length of a Chunked Message in bytes.
48 * then the Protocol Layer supports a Chunking mechanism to
51 * See Table 6-75 Value Parameters
57 * @name USB PD 3.1 Rev 1.6, Table 6-70 Counter Parameters
63 * Messages which have been sent by a Source at power up or after a
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
DKconfig.bap1 # Bluetooth Audio - Basic Audio Profile configuration options
4 # Copyright (c) 2022-2023 Nordic Semiconductor ASA
6 # SPDX-License-Identifier: Apache-2.0
55 default 1
56 range 1 24
60 The minimum size of a subgroup is 10 octets.
61 So effectively there can be a maximum of 24 subgroups in a BASE.
82 range 1 BT_ISO_MAX_CIG
90 default 1
91 range 1 BT_ISO_MAX_CHAN if BT_ISO_MAX_CHAN < 31
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dbap_broadcast_assistant.rst6 removed to make this shorter and provide a better overview.
8 The Broadcast Assistant is responsible for offloading scan for a resource
22 and a device has been connected, the Broadcast Assistant can discover BASS on
24 will start a discovery for the BASS UUIDs and store the handles, and
27 .. code-block:: console
29 uart:~$ bap_broadcast_assistant --help
30 bap_broadcast_assistant - Bluetooth BAP broadcast assistant client shell
36 add_src : Add a source <address: XX:XX:XX:XX:XX:XX> <type:
39 add_broadcast_id : Add a source by broadcast ID <broadcast_id> <sync_pa>
41 add_pa_sync : Add a PA sync as a source <sync_pa> <broadcast_id>
[all …]
Dcap.rst9 The Acceptor will typically be a resource-constrained device, such as a headset, earbud or hearing
10 aid. The Acceptor can initialize a Coordinated Set Identification Service instance, if it is in
11 a pair with one or more other CAP Acceptors.
20 .. code-block:: console
23 cap_acceptor --help
24 cap_acceptor - Bluetooth CAP acceptor shell commands
27 [rank <int>] [not-lockable] [sirk <data>]
38 Setting a new SIRK
39 ------------------
42 :code:`bt adv-data` or :code:`bt advertise` must be called again to set the new advertising data.
[all …]
/Zephyr-latest/tests/arch/common/stack_unwind/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
12 static void func1(int a);
13 static void func2(int a);
15 static void func2(int a) in func2() argument
17 printf("%d: %s\n", a, __func__); in func2()
19 if (a >= 5) { in func2()
23 func1(a + 1); in func2()
26 static void func1(int a) in func1() argument
28 printf("%d: %s\n", a, __func__); in func1()
29 func2(a + 1); in func1()
[all …]
/Zephyr-latest/include/zephyr/arch/riscv/
Datomic.h3 * SPDX-License-Identifier: Apache-2.0
13 /* The standard RISC-V atomic-instruction extension, "A", specifies
14 * the number of instructions that atomically read-modify-write memory,
15 * which RISC-V harts should support in order to synchronise harts
16 * running in the same memory space. This is the subset of RISC-V
17 * atomic-instructions not present in atomic_builtin.h file.
25 __asm__ volatile("amoswap.d.aq %0, %1, %2" in atomic_swap()
27 : "r"(newval), "A"(*target) in atomic_swap()
37 __asm__ volatile("amomax.d.aq %0, %1, %2" in atomic_max()
39 : "r"(value), "A"(*target) in atomic_max()
[all …]
/Zephyr-latest/include/zephyr/xen/public/
Dgrant_table.h1 /* SPDX-License-Identifier: MIT */
7 * page-ownership transfers.
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27 * Copyright (c) 2004, K A Fraser
38 * Xen's grant tables provide a generic mechanism to memory sharing
42 * Each domain has its own grant table. This is a data structure that
45 * table are identified by grant references. A grant reference is an
46 * integer, which indexes into the grant table. It acts as a
50 * This capability-based system allows shared-memory communications
[all …]

12345678910>>...44