/Zephyr-Core-3.5.0/samples/drivers/uart/native_tty/ |
D | README.rst | 55 Device uart sent: "Hello from device uart, num 9" 56 Device uart2 received: "Hello from device uart, num 9" 57 Device uart sent: "Hello from device uart, num 8" 58 Device uart2 received: "Hello from device uart, num 8" 59 Device uart sent: "Hello from device uart, num 7" 60 Device uart2 received: "Hello from device uart, num 7" 61 Device uart sent: "Hello from device uart, num 6" 62 Device uart2 received: "Hello from device uart, num 6" 63 Device uart sent: "Hello from device uart, num 5" 64 Device uart2 received: "Hello from device uart, num 5" [all …]
|
/Zephyr-Core-3.5.0/samples/shields/x_nucleo_53l0a1/src/ |
D | display_7seg.c | 125 int display_number(int num, unsigned int base) in display_number() argument 136 if (num <= max_negative_for_base[base] || num >= max_positive_for_base[base]) { in display_number() 140 if (num < 0) { in display_number() 141 num = -num; in display_number() 147 if (num > 0 || i == 3) { in display_number() 148 d = num % base; in display_number() 150 num /= base; in display_number()
|
/Zephyr-Core-3.5.0/subsys/ipc/ipc_service/backends/ |
D | ipc_rpmsg_static_vrings.h | 144 static inline size_t vq_ring_size(unsigned int num, unsigned int buf_size) in vq_ring_size() argument 146 return ROUND_UP((buf_size * num), MEM_ALIGNMENT); in vq_ring_size() 149 static inline size_t shm_size(unsigned int num, unsigned int buf_size) in shm_size() argument 151 return (VRING_COUNT * (vq_ring_size(num, buf_size) + in shm_size() 152 ROUND_UP(vring_size(num, MEM_ALIGNMENT), MEM_ALIGNMENT))); in shm_size()
|
/Zephyr-Core-3.5.0/arch/arc/core/mpu/ |
D | arc_mpu.c | 25 uint32_t num = z_arc_v2_aux_reg_read(_ARC_V2_MPU_BUILD); in get_num_regions() local 27 num = (num & 0xFF00U) >> 8U; in get_num_regions() 29 return (uint8_t)num; in get_num_regions()
|
/Zephyr-Core-3.5.0/tests/unit/intmath/ |
D | main.c | 81 volatile uint32_t num, a, b; in ZTEST() local 90 num = a * b; in ZTEST() 91 zassert_true((num == 176160000U), "32-bit multiplication failed"); in ZTEST() 95 num = a / b; in ZTEST() 96 zassert_true((num == 2368U), "32-bit division failed"); in ZTEST()
|
/Zephyr-Core-3.5.0/soc/arm/nordic_nrf/ |
D | validate_base_addresses.c | 105 #define CHECK_SPI_REG(lbl, num) \ argument 107 NODE_ADDRESS(lbl, nordic_nrf_spi, NRF_SPI##num, \ 108 NODE_ADDRESS(lbl, nordic_nrf_spim, NRF_SPIM##num, \ 109 NRF_SPIS##num))) 111 #define CHECK_I2C_REG(lbl, num) \ argument 113 NODE_ADDRESS(lbl, nordic_nrf_twi, NRF_TWI##num, \ 114 NODE_ADDRESS(lbl, nordic_nrf_twim, NRF_TWIM##num, \ 115 NRF_TWIS##num))) 117 #define CHECK_UART_REG(lbl, num) \ argument 119 NODE_ADDRESS(lbl, nordic_nrf_uart, NRF_UART##num, \ [all …]
|
/Zephyr-Core-3.5.0/drivers/entropy/ |
D | entropy_cc13xx_cc26xx.c | 133 uint32_t num[2]; in entropy_cc13xx_cc26xx_isr() local 140 num[1] = TRNGNumberGet(TRNG_HI_WORD); in entropy_cc13xx_cc26xx_isr() 141 num[0] = TRNGNumberGet(TRNG_LOW_WORD); in entropy_cc13xx_cc26xx_isr() 143 cnt = ring_buf_put(&data->pool, (uint8_t *)num, sizeof(num)); in entropy_cc13xx_cc26xx_isr() 146 if (cnt != sizeof(num)) { in entropy_cc13xx_cc26xx_isr() 177 uint32_t num[2]; in entropy_cc13xx_cc26xx_get_entropy_isr() local 200 num[1] = TRNGNumberGet(TRNG_HI_WORD); in entropy_cc13xx_cc26xx_get_entropy_isr() 201 num[0] = TRNGNumberGet(TRNG_LOW_WORD); in entropy_cc13xx_cc26xx_get_entropy_isr() 203 ring_buf_put(&data->pool, (uint8_t *)num, in entropy_cc13xx_cc26xx_get_entropy_isr() 204 sizeof(num)); in entropy_cc13xx_cc26xx_get_entropy_isr()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/ |
D | prov.c | 152 uint32_t num = 0; in get_auth_number() local 154 bt_rand(&num, sizeof(num)); in get_auth_number() 166 num = (num % (divider[size - 1] - 1)) + 1; in get_auth_number() 168 num %= divider[size - 1]; in get_auth_number() 171 sys_put_be32(num, &bt_mesh_prov_link.auth[auth_size - sizeof(num)]); in get_auth_number() 172 memset(bt_mesh_prov_link.auth, 0, auth_size - sizeof(num)); in get_auth_number() 174 return num; in get_auth_number() 269 int bt_mesh_input_number(uint32_t num) in bt_mesh_input_number() argument 273 LOG_DBG("%u", num); in bt_mesh_input_number() 279 sys_put_be32(num, &bt_mesh_prov_link.auth[auth_size - sizeof(num)]); in bt_mesh_input_number()
|
/Zephyr-Core-3.5.0/drivers/interrupt_controller/ |
D | Kconfig.multilevel.aggregator_template | 4 int "Level $(prev-level-num) IRQ line for $(cur-level) level aggregator $(aggregator)" 8 This is the level $(prev-level-num) interrupt number for level 9 $(cur-level-num) interrupt aggregator $(aggregator).
|
/Zephyr-Core-3.5.0/tests/drivers/entropy/api/src/ |
D | main.c | 35 static int random_entropy(const struct device *dev, char *buffer, char num) in random_entropy() argument 40 (void)memset(buffer, num, BUFFER_LENGTH); in random_entropy() 53 if (buffer[BUFFER_LENGTH - 1] != num) { in random_entropy() 60 if (buffer[i] == num) { in random_entropy()
|
/Zephyr-Core-3.5.0/tests/crypto/tinycrypt/src/ |
D | test_ecc_utils.c | 122 int check_ecc_result(const int num, const char *name, in check_ecc_result() argument 130 TC_PRINT("\n Vector #%02d check %s - FAILURE:\n\n", num, name); in check_ecc_result() 137 TC_PRINT(" Vector #%02d check %s - success\n", num, name); in check_ecc_result() 142 int check_code(const int num, const int expected, in check_code() argument 147 TC_ERROR("\n Vector #%02d check - FAILURE:\n", num); in check_code() 153 TC_PRINT(" Vector #%02d check - success (%d=%d)\n", num, in check_code()
|
D | test_ecc_utils.h | 76 int check_ecc_result(const int num, const char *name, 87 int check_code(const int num, const int expected,
|
/Zephyr-Core-3.5.0/tests/bluetooth/gatt/src/ |
D | main.c | 168 uint16_t num = 0; in ZTEST() local 177 bt_gatt_foreach_attr(test_attrs[0].handle, 0xffff, count_attr, &num); in ZTEST() 178 zassert_equal(num, 7, "Number of attributes don't match"); in ZTEST() 181 num = 0; in ZTEST() 183 count_attr, &num); in ZTEST() 184 zassert_equal(num, 1, "Number of attributes don't match"); in ZTEST() 208 num = 0; in ZTEST() 210 BT_UUID_GATT_CHRC, NULL, 0, count_attr, &num); in ZTEST() 211 zassert_equal(num, 2, "Number of attributes don't match"); in ZTEST()
|
/Zephyr-Core-3.5.0/samples/modules/tflite-micro/magic_wand/train/ |
D | data_split_test.py | 36 self.num = len(lines) 39 self.assertEqual(len(self.data), self.num) 71 self.assertEqual(len(test_data_100), self.num) 72 self.assertEqual(len(test_data_0), (self.num - 2 * len_50)) 73 self.assertEqual(len(test_data_20), (self.num - len_60 - len_20))
|
D | data_prepare_test.py | 40 num = 0 45 num += 1 46 self.assertEqual(len(self.data), num)
|
/Zephyr-Core-3.5.0/samples/basic/threads/src/ |
D | main.c | 41 uint8_t num; member 46 .num = 0, 51 .num = 1, 68 ret, spec->pin, led->num); in blink()
|
/Zephyr-Core-3.5.0/tests/subsys/fs/nvs/src/ |
D | main.c | 736 size_t i, num = 0; in num_matching_cache_entries() local 741 num++; in num_matching_cache_entries() 745 return num; in num_matching_cache_entries() 763 size_t num; in ZTEST_F() local 773 num = num_occupied_cache_entries(&fixture->fs); in ZTEST_F() 774 zassert_equal(num, 0, "uninitialized cache"); in ZTEST_F() 782 num = num_occupied_cache_entries(&fixture->fs); in ZTEST_F() 783 zassert_equal(num, 1, "cache not updated after write"); in ZTEST_F() 785 num = num_matching_cache_entries(ate_addr, false, &fixture->fs); in ZTEST_F() 786 zassert_equal(num, 1, "invalid cache entry after write"); in ZTEST_F() [all …]
|
/Zephyr-Core-3.5.0/subsys/fs/ext2/ |
D | ext2_disk_access.c | 36 static int disk_read(const char *disk, uint8_t *buf, uint32_t start, uint32_t num) in disk_read() argument 43 rc = disk_access_read(disk, buf, start, num); in disk_read() 44 LOG_DBG("disk read: (start:%d, num:%d) (ret: %d)", start, num, rc); in disk_read() 50 static int disk_write(const char *disk, const uint8_t *buf, uint32_t start, uint32_t num) in disk_write() argument 57 rc = disk_access_write(disk, buf, start, num); in disk_write() 58 LOG_DBG("disk write: (start:%d, num:%d) (ret: %d)", start, num, rc); in disk_write()
|
/Zephyr-Core-3.5.0/samples/subsys/sensing/simple/src/ |
D | main.c | 38 int ret, i, num = 0; in main() local 40 ret = sensing_get_sensors(&num, &info); in main() 46 for (i = 0; i < num; ++i) { in main()
|
/Zephyr-Core-3.5.0/samples/subsys/usb/shell/boards/ |
D | qemu_cortex_m3.overlay | 13 num-bidir-endpoints = <8>; 19 num-bidir-endpoints = <8>;
|
/Zephyr-Core-3.5.0/samples/subsys/usb/shell/ |
D | virtual.overlay | 15 num-bidir-endpoints = <8>; 21 num-bidir-endpoints = <8>;
|
/Zephyr-Core-3.5.0/dts/arm/st/f4/ |
D | stm32f469.dtsi | 19 num-bidir-endpoints = <6>; 25 num-bidir-endpoints = <9>;
|
/Zephyr-Core-3.5.0/samples/subsys/usb_c/sink/src/ |
D | main.c | 191 int num; in port1_policy_cb_set_src_cap() local 196 num = num_pdos; in port1_policy_cb_set_src_cap() 197 if (num > PDO_MAX_DATA_OBJECTS) { in port1_policy_cb_set_src_cap() 198 num = PDO_MAX_DATA_OBJECTS; in port1_policy_cb_set_src_cap() 201 for (i = 0; i < num; i++) { in port1_policy_cb_set_src_cap() 205 dpm_data->src_cap_cnt = num; in port1_policy_cb_set_src_cap()
|
/Zephyr-Core-3.5.0/dts/arm/nordic/ |
D | nrf52820.dtsi | 194 cc-num = <4>; 204 cc-num = <4>; 214 cc-num = <4>; 223 cc-num = <3>; 270 cc-num = <4>; 338 cc-num = <6>; 376 num-bidir-endpoints = <1>; 377 num-in-endpoints = <7>; 378 num-out-endpoints = <7>; 379 num-isoin-endpoints = <1>; [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/btp/ |
D | btp_l2cap.h | 28 uint8_t num; member 32 uint8_t num; member 75 uint8_t num; member
|