/Zephyr-latest/tests/posix/c_lib_ext/src/ |
D | fnmatch.c | 4 * SPDX-License-Identifier: Apache-2.0 12 * https://git.musl-libc.org/cgit/libc-testsuite/tree/fnmatch.c 32 zassert_ok(fnmatch("-O[01]", "-O1", 0)); in ZTEST() 35 zassert_ok(fnmatch("[!]a-]", "b", 0)); in ZTEST() 36 zassert_ok(fnmatch("[]-_]", "^", 0)); in ZTEST() 37 zassert_ok(fnmatch("[!]-_]", "X", 0)); in ZTEST() 38 zassert_equal(fnmatch("??", "-", 0), FNM_NOMATCH); in ZTEST() 40 /* zassert_ok(fnmatch("a[/]b", "a/b", 0)); */ in ZTEST() 41 zassert_equal(fnmatch("a[/]b", "a/b", FNM_PATHNAME), FNM_NOMATCH); in ZTEST() 42 zassert_ok(fnmatch("[a-z]/[a-z]", "a/b", 0)); in ZTEST() [all …]
|
/Zephyr-latest/soc/microchip/mec/mec172x/ |
D | soc.h | 4 * SPDX-License-Identifier: Apache-2.0 14 * eight regions. Zephyr has an in-tree CMSIS header located in the arch 16 * from hal_cmsis based on the k-config CPU selection. 17 * The Zephyr in-tree header does not provide all the symbols ARM CMSIS 19 * MPU present to 0. We define these two symbols here based on our k-config 20 * selections. NOTE: Zephyr in-tree CMSIS defines the Cortex-M4 hardware 33 #define __ICACHE_PRESENT 0 /*!< Set to 1 if I-Cache is present */ 34 #define __DCACHE_PRESENT 0 /*!< Set to 1 if D-Cache is present */ 37 /** @brief ARM Cortex-M4 NVIC Interrupt Numbers 39 * negative numbers [-15, -1]. Lower numerical value indicates higher [all …]
|
/Zephyr-latest/subsys/ipc/ipc_service/backends/ |
D | ipc_rpmsg_static_vrings.h | 4 * SPDX-License-Identifier: Apache-2.0 17 * [B] backend 21 * ----------------------------------------------------------------- 22 * [B] register_ept ** 23 * [B] register_ept ** 24 * [B] ipc_rpmsg_register_ept 25 * [B] rpmsg_create_ept 29 * [B] mbox_send 30 * [B] mbox_callback 31 * [B] mbox_callback_process [all …]
|
/Zephyr-latest/tests/kernel/timer/timepoints/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 40 k_timepoint_t a, b; in ZTEST() local 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() 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() 53 b = sys_timepoint_calc(K_MSEC(1)); in ZTEST() 54 zassert_true(sys_timepoint_cmp(a, b) < 0); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | math_extras_impl.h | 4 * SPDX-License-Identifier: Apache-2.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 | math_extras.h | 4 * SPDX-License-Identifier: Apache-2.0 12 * Portable wrapper functions for a number of arithmetic and bit-counting functions that are often 29 * These functions compute `a + b` and store the result in `*result`, returning 35 * @brief Add two unsigned 16-bit integers. 37 * @param b Second operand. 41 static bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result); 44 * @brief Add two unsigned 32-bit integers. 46 * @param b Second operand. 51 static bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result); 54 * @brief Add two unsigned 64-bit integers. [all …]
|
/Zephyr-latest/tests/bluetooth/addr/src/ |
D | test_bt_addr_le_eq.c | 2 * SPDX-License-Identifier: Apache-2.0 13 bt_addr_le_t b = a; in ZTEST() local 15 zassert_true(bt_addr_le_eq(&a, &b)); in ZTEST() 21 bt_addr_le_t b = a; in ZTEST() local 23 zassert_true(bt_addr_le_eq(&a, &b)); in ZTEST() 29 bt_addr_le_t b = a; in ZTEST() local 31 zassume_true(bt_addr_le_eq(&a, &b)); in ZTEST() 33 zassert_false(bt_addr_le_eq(&a, &b)); in ZTEST() 39 bt_addr_le_t b = a; in ZTEST() local 41 zassume_true(bt_addr_le_eq(&a, &b)); in ZTEST() [all …]
|
/Zephyr-latest/scripts/coredump/gdbstubs/ |
D | gdbstub.py | 5 # SPDX-License-Identifier: Apache-2.0 41 data = b'' 46 if ch == b'$': 52 if ch == b'#': 59 # Get checksum (2-bytes) 68 socket.send(b'+') 74 socket.send(b'-') 87 pkt = b'$' + data + b'#' 107 barray = b'' 118 offset = addr - r['start'] [all …]
|
/Zephyr-latest/samples/subsys/zbus/uart_bridge/ |
D | README.rst | 1 .. zephyr:code-sample:: zbus-uart-bridge 3 :relevant-api: zbus_apis 19 .. zephyr-app-commands:: 20 :zephyr-app: samples/subsys/zbus/uart_bridge 21 :host-os: unix 28 .. code-block:: console 33 *** Booting Zephyr OS build zephyr-v3.1.0 *** 66 .. code-block:: bash 79 .. code-block:: shell 81 PUB [sensor_data] -> b'\xc5\x01\x00\x00\xb2\x11\x00\x00' [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | aes_ccm.c | 5 * SPDX-License-Identifier: Apache-2.0 20 static inline void xor16(uint8_t *dst, const uint8_t *a, const uint8_t *b) in xor16() argument 22 dst[0] = a[0] ^ b[0]; in xor16() 23 dst[1] = a[1] ^ b[1]; in xor16() 24 dst[2] = a[2] ^ b[2]; in xor16() 25 dst[3] = a[3] ^ b[3]; in xor16() 26 dst[4] = a[4] ^ b[4]; in xor16() 27 dst[5] = a[5] ^ b[5]; in xor16() 28 dst[6] = a[6] ^ b[6]; in xor16() 29 dst[7] = a[7] ^ b[7]; in xor16() [all …]
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | btca.c | 4 * SPDX-License-Identifier: Apache-2.0 18 #define B_BETTER (-1) 19 #define B_BETTER_TOPOLOGY (-2) 23 int diff = memcmp(&p1->clk_id, &p2->clk_id, sizeof(p1->clk_id)); in btca_port_id_cmp() 26 diff = p1->port_number - p2->port_number; 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() [all …]
|
/Zephyr-latest/tests/lib/cmsis_dsp/common/ |
D | test_common.h | 3 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 5 * SPDX-License-Identifier: Apache-2.0 22 #define ASSERT_MSG_SNR_LIMIT_EXCEED "signal-to-noise ratio " \ 72 #pragma GCC diagnostic ignored "-Wunused-function" 75 size_t length, const float64_t *a, const float64_t *b) in test_equal_f64() argument 80 if (a[index] != b[index]) { in test_equal_f64() 89 size_t length, const float32_t *a, const float32_t *b) in test_equal_f32() argument 94 if (a[index] != b[index]) { in test_equal_f32() 104 size_t length, const float16_t *a, const float16_t *b) in test_equal_f16() argument 109 if (a[index] != b[index]) { in test_equal_f16() [all …]
|
/Zephyr-latest/arch/arm64/core/ |
D | early_mem_funcs.S | 4 * SPDX-License-Identifier: Apache-2.0 25 /* is dst pointer 8-bytes aligned? */ 27 b.ne 2f 31 b.lo 2f 42 b.hi 1b 50 b.ne 3b 58 /* are dst and src pointers 8-bytes aligned? */ 61 b.ne 2f 65 b.lo 2f 72 b.hi 1b [all …]
|
/Zephyr-latest/samples/subsys/nvs/ |
D | sample.yaml | 10 - 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/arch/x86/core/ia32/ |
D | soft_float_stubs.c | 4 * SPDX-License-Identifier: Apache-2.0 22 __weak void __addtf3(long double a, long double b) in __addtf3() argument 27 __weak void __addxf3(long double a, long double b) in __addxf3() argument 32 __weak void __subtf3(long double a, long double b) in __subtf3() argument 37 __weak void __subxf3(long double a, long double b) in __subxf3() argument 42 __weak void __multf3(long double a, long double b) in __multf3() argument 47 __weak void __mulxf3(long double a, long double b) in __mulxf3() argument 52 __weak void __divtf3(long double a, long double b) in __divtf3() argument 57 __weak void __divxf3(long double a, long double b) in __divxf3() argument 232 __weak void __cmptf2(long double a, long double b) in __cmptf2() argument [all …]
|
/Zephyr-latest/samples/subsys/zbus/dyn_channel/ |
D | sample.yaml | 10 - "W: size=01" 11 - "W: Content" 12 - "W: 00 |." 13 - "W: size=02" 14 - "W: Content" 15 - "W: 01 01 |.." 16 - "W: size=03" 17 - "W: Content" 18 - "W: 00 00 00 |..." 19 - "W: size=04" [all …]
|
D | README.rst | 1 .. zephyr:code-sample:: zbus-dyn-channel 3 :relevant-api: zbus_apis 17 .. zephyr-app-commands:: 18 :zephyr-app: samples/subsys/zbus/dyn_channel 19 :host-os: unix 26 .. code-block:: console 66 W: 0b 0b 0b 0b 0b 0b 0b 0b |........ 67 W: 0b 0b 0b 0b |....
|
/Zephyr-latest/cmake/sca/eclair/ECL/ |
D | analysis.ecl | 1 -setq=data_dir,getenv("ECLAIR_DATA_DIR") 2 -setq=set,getenv("ECLAIR_RULESET") 4 -enable=B.REPORT.ECB 5 -config=B.REPORT.ECB,output=join_paths(data_dir,"FRAME.@FRAME@.ecb") 6 -config=B.REPORT.ECB,preprocessed=show 7 -config=B.REPORT.ECB,macros=10 9 -enable=B.EXPLAIN 11 -eval_file=toolchain.ecl
|
/Zephyr-latest/drivers/spi/ |
D | Kconfig.renesas_ra8 | 4 # SPDX-License-Identifier: Apache-2.0 7 bool "Renesas RA SPI B" 13 Enable Renesas RA RA SPI B Driver. 18 bool "RA MCU SPI B Interrupt Support" 20 Enable Interrupt support for the SPI B Driver of RA family. 30 bool "RA MCU SPI B Hardware Slave Select support"
|
/Zephyr-latest/boards/openisa/rv32m1_vega/ |
D | rv32m1_vega_openisa_rv32m1-pinctrl.dtsi | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/pinctrl/rv32m1-pinctrl.h> 13 slew-rate = "slow"; 21 slew-rate = "slow"; 29 slew-rate = "slow"; 37 slew-rate = "slow"; 43 pinmux = <RV32M1_MUX('B', 4, 2)>, 44 <RV32M1_MUX('B', 5, 2)>, 45 <RV32M1_MUX('B', 6, 2)>, 46 <RV32M1_MUX('B', 7, 2)>; [all …]
|
/Zephyr-latest/include/zephyr/drivers/sensor/ |
D | mcux_lpcmp.h | 5 * SPDX-License-Identifier: Apache-2.0 10 * @brief Data structure for the NXP MCUX low-power analog comparator (LPCMP) 51 * 0b: disable 52 * 1b: enable 57 * 0b: disable 58 * 1b: enable 79 * 00b: latched 80 * 01b: set to low 81 * 11b: set to high 87 * 001b: COUT rising edge event close an active window [all …]
|
/Zephyr-latest/samples/subsys/fs/zms/ |
D | README.rst | 1 .. zephyr:code-sample:: zms 3 :relevant-api: zms_high_level_api 40 .. zephyr-app-commands:: 41 :zephyr-app: samples/subsys/fs/zms 51 .. code-block:: console 53 *** Booting Zephyr OS build v3.7.0-2383-g624f75400242 *** 72 …b c d e f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2… 73 …4 55 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 73 74 … 91 …b c d e f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2… 92 …4 55 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 73 74 …
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_nuclei_eclic.c | 4 * SPDX-License-Identifier: Apache-2.0 28 } b; member 41 } b; member 54 } b; member 63 } b; member 69 /** 0: non-vectored 1:vectored */ 75 } b; member 103 return (val << (8U - shift)); in leftalign8() 108 return ((1 << len) - 1) & 0xFFFFU; in mask8() 116 ECLIC_CTRL[irq].INTIE.b.IE = 1; in riscv_clic_irq_enable() [all …]
|
/Zephyr-latest/tests/lib/cmsis_dsp/filtering/src/ |
D | misc_q31.c | 3 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 5 * SPDX-License-Identifier: Apache-2.0 30 * refer to the CMSIS-DSP bug ARM-software/CMSIS-DSP#59. in test_arm_correlate_q31() 56 #define DEFINE_CORRELATE_TEST(a, b) \ argument 58 arm_correlate_q31, a##_##b, a, b, \ 59 ref_correlate_##a##_##b, ARRAY_SIZE(ref_correlate_##a##_##b)) 128 #define DEFINE_CONV_TEST(a, b) \ argument 130 arm_conv_q31, a##_##b, a, b, \ 131 ref_conv_##a##_##b, ARRAY_SIZE(ref_conv_##a##_##b)) 264 #define DEFINE_CONV_PARTIAL_TEST(a, b, c) \ argument [all …]
|
/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/ |
D | ztest_assert.h | 4 * SPDX-License-Identifier: Apache-2.0 289 #define zassert_ok(cond, ...) zassert(!(cond), #cond " is non-zero", ##__VA_ARGS__) 313 * @brief Assert that @a a equals @a b 315 * @a a and @a b won't be converted and will be compared directly. 318 * @param b Value to compare 321 #define zassert_equal(a, b, ...) zassert((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) argument 324 * @brief Assert that @a a does not equal @a b 326 * @a a and @a b won't be converted and will be compared directly. 329 * @param b Value to compare 332 #define zassert_not_equal(a, b, ...) zassert((a) != (b), #a " equal to " #b, ##__VA_ARGS__) argument [all …]
|