/Zephyr-latest/tests/bluetooth/addr/src/ |
D | test_bt_addr_le_eq.c | 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() 32 a.type = 1; in ZTEST() [all …]
|
D | test_bt_addr_from_str.c | 13 bt_addr_t a; in ZTEST() local 15 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 21 bt_addr_t a; in ZTEST() local 23 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 29 bt_addr_t a; in ZTEST() local 31 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 37 bt_addr_t a; in ZTEST() local 39 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 45 bt_addr_t a; in ZTEST() local 47 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() [all …]
|
/Zephyr-latest/tests/posix/c_lib_ext/src/ |
D | fnmatch.c | 18 zassert_ok(fnmatch("*.c", "foo.c", 0)); in ZTEST() 19 zassert_ok(fnmatch("*.c", ".c", 0)); in ZTEST() 20 zassert_equal(fnmatch("*.a", "foo.c", 0), FNM_NOMATCH); in ZTEST() 21 zassert_ok(fnmatch("*.c", ".foo.c", 0)); in ZTEST() 24 zassert_equal(fnmatch("a\\*.c", "a*.c", FNM_NOESCAPE), FNM_NOMATCH); in ZTEST() 25 zassert_equal(fnmatch("a\\*.c", "ax.c", 0), FNM_NOMATCH); in ZTEST() 26 zassert_ok(fnmatch("a[xy].c", "ax.c", 0)); in ZTEST() 27 zassert_ok(fnmatch("a[!y].c", "ax.c", 0)); in ZTEST() 28 zassert_equal(fnmatch("a[a/z]*.c", "a/x.c", FNM_PATHNAME), FNM_NOMATCH); in ZTEST() 29 zassert_ok(fnmatch("a/*.c", "a/x.c", FNM_PATHNAME)); in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/timer/timepoints/src/ |
D | main.c | 31 zassert_true(remaining.ticks <= timeout.ticks && remaining.ticks != 0); in ZTEST() 40 k_timepoint_t a, b; in ZTEST() local 42 a = sys_timepoint_calc(K_NO_WAIT); in ZTEST() 43 b = a; in ZTEST() 44 zassert_true(sys_timepoint_cmp(a, b) == 0); in ZTEST() 45 zassert_true(sys_timepoint_cmp(b, a) == 0); in ZTEST() 47 a = sys_timepoint_calc(K_FOREVER); in ZTEST() 48 b = a; in ZTEST() 49 zassert_true(sys_timepoint_cmp(a, b) == 0); in ZTEST() 50 zassert_true(sys_timepoint_cmp(b, a) == 0); in ZTEST() [all …]
|
/Zephyr-latest/drivers/tee/optee/ |
D | optee_rpc_cmd.h | 10 * All RPC is done with a struct optee_msg_arg as bearer of information, 25 * [out] value[0].a Number of seconds 26 * [out] value[0].b Number of nano seconds. 33 * If secure world needs to wait for something, for instance a mutex, it 34 * does a notification wait request instead of spinning in secure world. 35 * Conversely can a synchronous notification can be sent when a secure 36 * world mutex with a thread waiting thread is unlocked. 38 * This interface can also be used to wait for a asynchronous notification 39 * which instead is sent via a non-secure interrupt. 42 * [in] value[0].a OPTEE_RPC_NOTIFICATION_WAIT [all …]
|
/Zephyr-latest/modules/littlefs/ |
D | zephyr_lfs_config.h | 78 /* toolchain-specific implementations. LFS_NO_INTRINSICS falls back to a more */ 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() 98 static inline uint32_t lfs_alignup(uint32_t a, uint32_t alignment) in lfs_alignup() argument 100 return lfs_aligndown(a + alignment-1, alignment); in lfs_alignup() [all …]
|
/Zephyr-latest/include/zephyr/arch/common/ |
D | semihost.h | 32 /** Open a file or stream on the host system. */ 33 SEMIHOST_OPEN = 0x01, 34 /** Check whether a file is associated with a stream/terminal */ 35 SEMIHOST_ISTTY = 0x09, 36 /** Write to a file or stream. */ 37 SEMIHOST_WRITE = 0x05, 38 /** Read from a file at the current cursor position. */ 39 SEMIHOST_READ = 0x06, 40 /** Closes a file on the host which has been opened by SEMIHOST_OPEN. */ 41 SEMIHOST_CLOSE = 0x02, [all …]
|
/Zephyr-latest/tests/subsys/debug/coredump_threads/ |
D | testcase.yaml | 21 - "E: #CD:5([aA])45([0-9a-fA-F]+)" 22 - "E: #CD:41([0-9a-fA-F]+)" 23 - "E: #CD:54([0-9a-fA-F]+)" 24 - "E: #CD:4([dD])([0-9a-fA-F]+)" 25 - "E: #CD:4([dD])([0-9a-fA-F]+)" 26 - "E: #CD:4([dD])([0-9a-fA-F]+)" 27 - "E: #CD:4([dD])([0-9a-fA-F]+)" 28 - "E: #CD:4([dD])([0-9a-fA-F]+)" 29 - "E: #CD:4([dD])([0-9a-fA-F]+)" 30 - "E: #CD:4([dD])([0-9a-fA-F]+)" [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | addr.h | 29 #define BT_ADDR_LE_PUBLIC 0x00 30 #define BT_ADDR_LE_RANDOM 0x01 31 #define BT_ADDR_LE_PUBLIC_ID 0x02 32 #define BT_ADDR_LE_RANDOM_ID 0x03 33 #define BT_ADDR_LE_UNRESOLVED 0xFE /* Resolvable Private Address 36 #define BT_ADDR_LE_ANONYMOUS 0xFF /* No address provided 40 /** Length in bytes of a standard Bluetooth address */ 55 bt_addr_t a; member 64 /** Bluetooth device "any" address, not a valid address */ 66 /** Bluetooth device "none" address, not a valid address */ [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | bap_broadcast_assistant.rst | 6 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 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> 45 broadcast_code : Send a string-based broadcast code of up to 16 bytes 47 rem_src : Remove a source <src_id> 48 read_state : Remove a source <index> [all …]
|
/Zephyr-latest/arch/xtensa/include/ |
D | xtensa_mmu_priv.h | 25 #define XTENSA_MMU_PTE_VPN_MASK 0xFFFFF000U 28 #define XTENSA_MMU_PTE_PPN_MASK 0xFFFFF000U 31 #define XTENSA_MMU_PTE_ATTR_MASK 0x0000000FU 34 #define XTENSA_MMU_PTE_ATTR_CACHED_MASK 0x0000000CU 37 #define XTENSA_MMU_L1_MASK 0x3FF00000U 40 #define XTENSA_MMU_L2_MASK 0x3FFFFFU 42 #define XTENSA_MMU_PTEBASE_MASK 0xFFC00000 48 #define XTENSA_MMU_PTE_RING_MASK 0x00000030U 57 #define XTENSA_MMU_PTE_SW_MASK 0x00000FC0U 66 /** Construct a page table entry (PTE) */ [all …]
|
/Zephyr-latest/samples/sensor/ccs811/ |
D | README.rst | 5 Get CO2 equivalent and VOC data from a CCS811 sensor. 12 pollutants and/or sensory irritants and can come from a variety of 34 The sample output below is from a `Nordic Thingy:52 37 After a soft reset, there is a 5-second startup period 39 reported measurements of about 400 ppm eC02 and 0 ppb eTVOC. 44 device is 0x20001088, name is CCS811 47 [0:00:00.046]: CCS811: 65021 ppm eCO2; 65021 ppb eTVOC 48 Voltage: 0.000000V; Current: 0.000000A 50 Timed fetch got 0 52 [0:00:01.059]: CCS811: 65021 ppm eCO2; 65021 ppb eTVOC [all …]
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | btca.c | 25 if (diff == 0) { in btca_port_id_cmp() 32 static int btca_ds_cmp2(const struct ptp_dataset *a, const struct ptp_dataset *b) in btca_ds_cmp2() argument 36 if (b->steps_rm + 1 < a->steps_rm) { in btca_ds_cmp2() 39 if (a->steps_rm + 1 < b->steps_rm) { in btca_ds_cmp2() 42 if (a->steps_rm > b->steps_rm) { in btca_ds_cmp2() 43 diff = btca_port_id_cmp(&a->receiver, &a->sender); in btca_ds_cmp2() 44 if (diff > 0) { in btca_ds_cmp2() 47 if (diff < 0) { in btca_ds_cmp2() 51 return 0; in btca_ds_cmp2() 53 if (a->steps_rm < b->steps_rm) { in btca_ds_cmp2() [all …]
|
/Zephyr-latest/samples/subsys/fs/zms/ |
D | README.rst | 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, 16 data={0xDE, 0xAD, 0xBE, 0xEF, 0xDE, 0xAD, 0xBE, 0xEF} 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 45 After running the generated image on a native_sim target, the output on the console shows the 55 [00:00:00.000,000] <inf> fs_zms: alloc wra: 0, fc0 56 [00:00:00.000,000] <inf> fs_zms: data wra: 0, 0 [all …]
|
/Zephyr-latest/include/zephyr/devicetree/ |
D | pinctrl.h | 21 * @brief Get a node identifier for a phandle in a pinctrl property by index 26 * pinctrl-0 = <&foo &bar>; 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 44 * @brief Get a node identifier from a pinctrl-0 property 48 * DT_PINCTRL_BY_IDX(node_id, 0, idx) 50 * It is provided for convenience since pinctrl-0 is commonly used. 52 * @param node_id node with a pinctrl-0 property 53 * @param idx index into the pinctrl-0 property [all …]
|
D | dma.h | 26 * @brief Get the node identifier for the DMA controller from a 36 * dmas = <&dma1 1 2 0x400 0x3>, 37 * <&dma2 6 3 0x404 0x5>; 42 * DT_DMAS_CTLR_BY_IDX(DT_NODELABEL(n), 0) // DT_NODELABEL(dma1) 45 * @param node_id node identifier for a node with a dmas property 54 * @brief Get the node identifier for the DMA controller from a 64 * dmas = <&dma1 1 2 0x400 0x3>, 65 * <&dma2 6 3 0x404 0x5>; 74 * @param node_id node identifier for a node with a dmas property 75 * @param name lowercase-and-underscores name of a dmas element [all …]
|
D | spi.h | 26 * @brief Does a SPI controller node have chip select GPIOs configured? 29 * chip select GPIOs. Its value is a phandle-array which specifies the 47 * DT_SPI_HAS_CS_GPIOS(DT_NODELABEL(spi2)) // 0 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 72 * DT_SPI_NUM_CS_GPIOS(DT_NODELABEL(spi2)) // 0 74 * @param spi a SPI bus controller node identifier 75 * @return Logical length of spi's cs-gpios property, or 0 if "spi" doesn't 76 * have a cs-gpios property [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | math_extras_impl.h | 26 #define use_builtin(x) 0 32 static inline bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result) in u16_add_overflow() argument 34 return __builtin_add_overflow(a, b, result); in u16_add_overflow() 37 static inline bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result) in u32_add_overflow() argument 39 return __builtin_add_overflow(a, b, result); in u32_add_overflow() 42 static inline bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_add_overflow() argument 44 return __builtin_add_overflow(a, b, result); in u64_add_overflow() 47 static inline bool size_add_overflow(size_t a, size_t b, size_t *result) in size_add_overflow() argument 49 return __builtin_add_overflow(a, b, result); in size_add_overflow() 52 static inline bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result) in u16_add_overflow() argument [all …]
|
D | byteorder.h | 19 #define BSWAP_16(x) ((uint16_t) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))) 20 #define BSWAP_24(x) ((uint32_t) ((((x) >> 16) & 0xff) | \ 21 (((x)) & 0xff00) | \ 22 (((x) & 0xff) << 16))) 23 #define BSWAP_32(x) ((uint32_t) ((((x) >> 24) & 0xff) | \ 24 (((x) >> 8) & 0xff00) | \ 25 (((x) & 0xff00) << 8) | \ 26 (((x) & 0xff) << 24))) 27 #define BSWAP_40(x) ((uint64_t) ((((x) >> 32) & 0xff) | \ 28 (((x) >> 16) & 0xff00) | \ [all …]
|
/Zephyr-latest/tests/drivers/coredump/coredump_api/ |
D | testcase.yaml | 19 - "E: #CD:5([aA])45([0-9a-fA-F]+)" 20 - "E: #CD:4([dD])([0-9a-fA-F]+)" 21 - "E: #CD:4([dD])([0-9a-fA-F]+)" 22 - "E: #CD:4([dD])([0-9a-fA-F]+)" 24 - "E: #CD:4([dD])([0-9a-fA-F]+)" 26 - "E: #CD:4([dD])([0-9a-fA-F]+)" 28 - "E: #CD:4([dD])([0-9a-fA-F]+)" 30 - "E: #CD:4([dD])([0-9a-fA-F]+)" 46 - "E: #CD:5([aA])45([0-9a-fA-F]+)" 47 - "E: #CD:4([dD])([0-9a-fA-F]+)" [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | socketcan_utils.h | 30 * @brief Translate a @a socketcan_frame struct to a @a can_frame struct. 38 memset(zframe, 0, sizeof(*zframe)); in socketcan_to_can_frame() 40 zframe->flags |= (sframe->can_id & BIT(31)) != 0 ? CAN_FRAME_IDE : 0; in socketcan_to_can_frame() 41 zframe->flags |= (sframe->can_id & BIT(30)) != 0 ? CAN_FRAME_RTR : 0; in socketcan_to_can_frame() 42 zframe->flags |= (sframe->flags & CANFD_FDF) != 0 ? CAN_FRAME_FDF : 0; in socketcan_to_can_frame() 43 zframe->flags |= (sframe->flags & CANFD_BRS) != 0 ? CAN_FRAME_BRS : 0; in socketcan_to_can_frame() 47 if ((zframe->flags & CAN_FRAME_RTR) == 0U) { in socketcan_to_can_frame() 54 * @brief Translate a @a can_frame struct to a @a socketcan_frame struct. 62 memset(sframe, 0, sizeof(*sframe)); in socketcan_from_can_frame() 65 sframe->can_id |= (zframe->flags & CAN_FRAME_IDE) != 0 ? BIT(31) : 0; in socketcan_from_can_frame() [all …]
|
/Zephyr-latest/dts/bindings/pwm/ |
D | infineon,xmc4xxx-ccu8-pwm.yaml | 7 The PWM CCU8 module can automatically generate a high-side 8 and a low-side PWM signal, where the two signals are complementary 11 The module supports adding a dead time between the high-side and 14 The dead time ensures that there is a delay before the PWM state 15 transitions from 0 to 1, preventing the high-side and low-side 20 two channels. A channel consists of a corresponding high-side 24 a separate prescaler to divide the clock. The clock divider is 26 slice has a dead time prescaler, which divides the slice clock 30 A node can define a 'pwm' field, usually referenced in a 'pwms' 33 PWM_XX() macros), and a channel [all …]
|
/Zephyr-latest/samples/subsys/ipc/ipc_service/multi_endpoint/ |
D | README.rst | 19 Open a serial terminal (for example Minicom or PuTTY) and connect the board with the following sett… 32 IPC-service HOST [INST 0 - ENDP A] demo started 33 IPC-service HOST [INST 0 - ENDP B] demo started 35 HOST [0A]: 1 36 HOST [0A]: 3 37 HOST [0B]: 1 40 HOST [0A]: 99 41 IPC-service HOST [INST 0 - ENDP A] demo ended. 42 HOST [0B]: 99 43 IPC-service HOST [INST 0 - ENDP B] demo ended. [all …]
|
/Zephyr-latest/doc/hardware/porting/ |
D | shields.rst | 6 Shields, also known as "add-on" or "daughter boards", attach to a board 26 * **<shield>.overlay**: This file provides a shield description in devicetree 42 to provide a device nodelabel is the form <device>_<shield>, for instance: 54 It is possible to add source code to shields, as a way to meet configuration 65 To effectively incorporate source code: add a :file:`CMakeLists.txt` file, as 74 software compatibility, boards must also provide a configuration matching 81 * Devicetree: A board :ref:`devicetree <dt-guide>` file, 92 If modifications are needed to fit a shield to a particular board or board 93 revision, you can override a shield description for a specific board by adding 94 board or board revision overriding files to a shield, as follows: [all …]
|
/Zephyr-latest/tests/ztest/error_hook/ |
D | README.txt | 1 Title: A common fatal error and assert fail handler 17 into a common part and let other test suites or applications reuse it, instead 20 And when error happens, we sometimes need a special action to make our testing 22 error happened. This is why we add a hook on it, in order to achieve that goal. 28 (a) Usage for dealing with fatal error: 34 Step3: (optional) Define a hook function call ztest_post_fatal_error_hook(). 46 Step3: (optional) Define a hook function call ztest_post_assert_fail_hook(). 64 - To call a function then giving the condition to trigger the assert fail, 68 - start a thread to test triggering a null address dereferencing, then catch 70 - start a thread to test triggering an illegal instruction, then catch [all …]
|