Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 174) sorted by relevance

1234567

/hal_espressif-3.5.0/examples/cxx/experimental/experimental_cpp_component/host_test/gpio/main/
Dgpio_cxx_test.cpp111 gpio_set_level_ExpectAndReturn(static_cast<gpio_num_t>(fix.num.get_num()), 1, ESP_FAIL);
113 GPIO_Output gpio(fix.num);
121 gpio_set_level_ExpectAndReturn(static_cast<gpio_num_t>(fix.num.get_num()), 1, ESP_OK);
123 GPIO_Output gpio(fix.num);
131 gpio_set_level_ExpectAndReturn(static_cast<gpio_num_t>(fix.num.get_num()), 0, ESP_FAIL);
133 GPIO_Output gpio(fix.num);
141 gpio_set_level_ExpectAndReturn(static_cast<gpio_num_t>(fix.num.get_num()), 0, ESP_OK);
143 GPIO_Output gpio(fix.num);
151 …gpio_set_drive_capability_ExpectAndReturn(static_cast<gpio_num_t>(fix.num.get_num()), GPIO_DRIVE_C…
153 GPIO_Output gpio(fix.num);
[all …]
/hal_espressif-3.5.0/components/nvs_flash/test_nvs_host/
Dtest_intrusive_list.cpp20 TestNode(const char* name_ = "", int num_ = 0) : num(num_) in TestNode()
26 int num; member
40 REQUIRE(list.begin()->num == 1);
41 REQUIRE(list.front().num == 1);
42 REQUIRE(list.back().num == 1);
44 REQUIRE(list.begin()->num == 2);
45 REQUIRE(list.front().num == 2);
46 REQUIRE(list.back().num == 1);
49 REQUIRE(list.begin()->num == 3);
50 REQUIRE(list.front().num == 3);
[all …]
/hal_espressif-3.5.0/examples/protocols/http_server/persistent_sockets/
Dhttp_server_persistence_test.py65 num = random.randint(0,100)
66 client.putreq(conn, '/adder', str(num))
69 dut1.expect('/adder PUT handler read ' + str(num), timeout=30)
73 num = random.randint(0,100)
74 Utility.console_log('Adding: ' + str(num))
75 client.putreq(conn, '/adder', str(num))
77 adder += num
79 dut1.expect('/adder PUT handler read ' + str(num), timeout=30)
91 for num in random_nums:
92 Utility.console_log('Adding: ' + str(num))
[all …]
/hal_espressif-3.5.0/components/esp_hw_support/port/esp32/
Dcache_sram_mmu.c35 #define FLASH_MMU_EDGE_CHECK(mmu_val,num) (((mmu_val) + (num)) > 256) argument
37 #define SRAM_MMU_EDGE_CHECK(mmu_val,num,psize) (((mmu_val) + (num)) > ((8*1024)/(psize))) argument
42 …_sram_mmu_set_rom(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num);
53 …cache_sram_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num) in cache_sram_mmu_set() argument
58 return cache_sram_mmu_set_rom(cpu_no, pid, vaddr, paddr, psize, num); in cache_sram_mmu_set()
109 for ( i = 0; i < num; i++){ in cache_sram_mmu_set()
129 …che_sram_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num) { in cache_sram_mmu_set() argument
130 return cache_sram_mmu_set_rom(cpu_no, pid, vaddr, paddr, psize, num); in cache_sram_mmu_set()
/hal_espressif-3.5.0/examples/cxx/experimental/experimental_cpp_component/
Dgpio_cxx.cpp47 for (auto num: INVALID_GPIOS) in check_gpio_pin_num() local
49 if (pin_num == num) { in check_gpio_pin_num()
116 GPIOBase::GPIOBase(GPIONum num) : gpio_num(num) in GPIOBase() argument
137 GPIO_Output::GPIO_Output(GPIONum num) : GPIOBase(num) in GPIO_Output() argument
159 GPIOInput::GPIOInput(GPIONum num) : GPIOBase(num) in GPIOInput() argument
191 GPIO_OpenDrain::GPIO_OpenDrain(GPIONum num) : GPIOInput(num) in GPIO_OpenDrain() argument
/hal_espressif-3.5.0/tools/
Dmkuf2.py65 def _to_uint32(num): argument
66 return struct.pack('<I', num)
118 num = int(string, 0)
119 if not four_byte_aligned(num):
121 return num
124 num = int(string, 16)
125 if num < 0 or num > 0xFFFFFFFF:
127 return num
163 num = int(string, 0)
164 if not four_byte_aligned(num):
[all …]
Dgen_esp_err_to_name.py161 num = int(m.group(1), 16)
166 num = int(m.group(1), 10)
170 num = 0 # (BASE + 0)
178 err_dict[num].append(ErrItem(words[1], idf_path, include_as, comment))
179 rev_err_dict[words[1]] = num
182 unproc_list.append(ErrItem(words[1], idf_path, include_as, comment, related, num))
197 num = base_num + item.rel_off
198 err_dict[num].append(ErrItem(item.name, item.file, item.include_as, item.comment))
199 rev_err_dict[item.name] = num
/hal_espressif-3.5.0/components/wpa_supplicant/test/
Dtest_crypto.c392 mbedtls_mpi num; variable
399 mbedtls_mpi_init( &num );
400 mbedtls_mpi_lset( &num, 3 );
407 TEST_ASSERT(crypto_ec_point_mul(e, p, (crypto_bignum *) &num, q) == 0); //q = 3p
414 mbedtls_mpi_free( &num );
431 mbedtls_mpi num; variable
438 mbedtls_mpi_init( &num );
439 mbedtls_mpi_lset( &num, 100 );
446 TEST_ASSERT(crypto_ec_point_mul(e, p, (crypto_bignum *) &num, q) == 0);
447 TEST_ASSERT(crypto_ec_point_mul(e, p, (crypto_bignum *) &num, r) == 0);
[all …]
/hal_espressif-3.5.0/examples/common_components/qrcode/
Desp_qrcode_main.c47 unsigned char num = 0; in esp_qrcode_print_console() local
51 num = 0; in esp_qrcode_print_console()
53 num |= 1 << 0; in esp_qrcode_print_console()
56 num |= 1 << 1; in esp_qrcode_print_console()
59 num |= 1 << 2; in esp_qrcode_print_console()
62 num |= 1 << 3; in esp_qrcode_print_console()
64 printf("%s", lt[num]); in esp_qrcode_print_console()
/hal_espressif-3.5.0/components/pthread/test/
Dtest_pthread.c13 int *num = (int *) arg; in compute_square() local
14 *num = (*num) * (*num); in compute_square()
16 pthread_exit((void *) num); in compute_square()
23 volatile int num = 7; variable
37 res = pthread_create(&new_thread, &attr, compute_square, (void *) &num);
44 TEST_ASSERT_EQUAL_INT(49, num);
49 res = pthread_create(&new_thread, &attr, compute_square, (void *) &num);
55 TEST_ASSERT_EQUAL_INT(2401, num);
56 TEST_ASSERT_EQUAL_PTR(&num, thread_rval);
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/gatt/
Dbta_gattc_co.c175 UINT8 num = cache_env->num_addr; in cacheReset() local
177 for(UINT8 i = index; i < (num - 1); i++) { in cacheReset()
464 UINT8 num = cache_env->num_addr; in bta_gattc_co_addr_in_cache() local
466 for (addr_index = 0; addr_index < num; addr_index++) { in bta_gattc_co_addr_in_cache()
478 UINT8 num = cache_env->num_addr; in bta_gattc_co_find_addr_in_cache() local
481 for (addr_index = 0; addr_index < num; addr_index++, addr_info++) { in bta_gattc_co_find_addr_in_cache()
493 UINT8 num = cache_env->num_addr; in bta_gattc_co_find_hash_in_cache() local
495 for (index = 0; index < num; index++) { in bta_gattc_co_find_hash_in_cache()
511 UINT8 num = cache_env->num_addr; in bta_gattc_co_get_addr_list() local
512 for (UINT8 i = 0; i < num; i++) { in bta_gattc_co_get_addr_list()
[all …]
/hal_espressif-3.5.0/components/driver/test/
Dtest_rtcio.c132 int num = rtc_io_number_get(s_test_map[i]);
133 if (rtc_gpio_is_valid_gpio(s_test_map[i]) && num > 0 && rtc_io_desc[num].pullup != 0) {
146 int num = rtc_io_number_get(s_test_map[i]);
147 if (rtc_gpio_is_valid_gpio(s_test_map[i]) && num > 0 && rtc_io_desc[num].pullup != 0) {
166 int num = rtc_io_number_get(s_test_map[i]);
167 if (rtc_gpio_is_valid_gpio(s_test_map[i]) && num > 0 && rtc_io_desc[num].pullup != 0) {
/hal_espressif-3.5.0/components/soc/esp32c3/include/soc/
Dio_mux_reg.h123 #define GPIO_PAD_PULLUP(num) do{PIN_PULLDWN_DIS(IOMUX_REG_GPIO##num);PIN_PULLUP_EN(IOMUX_REG_GPIO## argument
124 #define GPIO_PAD_PULLDOWN(num) do{PIN_PULLUP_DIS(IOMUX_REG_GPIO##num);PIN_PULLDWN_EN(IOMUX_REG_GPIO… argument
125 #define GPIO_PAD_SET_DRV(num, drv) PIN_SET_DRV(IOMUX_REG_GPIO##num, drv) argument
/hal_espressif-3.5.0/components/soc/esp32h2/include/soc/
Dio_mux_reg.h123 #define GPIO_PAD_PULLUP(num) do{PIN_PULLDWN_DIS(IOMUX_REG_GPIO##num);PIN_PULLUP_EN(IOMUX_REG_GPIO## argument
124 #define GPIO_PAD_PULLDOWN(num) do{PIN_PULLUP_DIS(IOMUX_REG_GPIO##num);PIN_PULLDWN_EN(IOMUX_REG_GPIO… argument
125 #define GPIO_PAD_SET_DRV(num, drv) PIN_SET_DRV(IOMUX_REG_GPIO##num, drv) argument
/hal_espressif-3.5.0/examples/cxx/experimental/experimental_cpp_component/host_test/fixtures/
Dtest_fixtures.hpp65 …ture(idf::GPIONum gpio_num = idf::GPIONum(18), gpio_mode_t mode = GPIO_MODE_OUTPUT) : num(gpio_num) in GPIOFixture()
68 …ndReturn(static_cast<gpio_num_t>(num.get_num()), ESP_OK); gpio_set_direction_ExpectAndReturn(stati… in GPIOFixture()
77 idf::GPIONum num; member
/hal_espressif-3.5.0/examples/ethernet/basic/main/
Dethernet_example_main.c26 #define INIT_SPI_ETH_MODULE_CONFIG(eth_module_config, num) \ argument
28 eth_module_config[num].spi_cs_gpio = CONFIG_EXAMPLE_ETH_SPI_CS ##num## _GPIO; \
29 eth_module_config[num].int_gpio = CONFIG_EXAMPLE_ETH_SPI_INT ##num## _GPIO; \
30 eth_module_config[num].phy_reset_gpio = CONFIG_EXAMPLE_ETH_SPI_PHY_RST ##num## _GPIO; \
31 eth_module_config[num].phy_addr = CONFIG_EXAMPLE_ETH_SPI_PHY_ADDR ##num; \
/hal_espressif-3.5.0/examples/wifi/getting_started/station/
DREADME.md47 I (629) wifi: Init dynamic tx buffer num: 32
48 I (629) wifi: Init data frame dynamic rx buffer num: 32
49 I (639) wifi: Init management frame dynamic rx buffer num: 32
50 I (639) wifi: Init management short buffer num: 32
52 I (649) wifi: Init static rx buffer num: 10
53 I (659) wifi: Init dynamic rx buffer num: 32
80 I (629) wifi: Init dynamic tx buffer num: 32
81 I (629) wifi: Init data frame dynamic rx buffer num: 32
82 I (639) wifi: Init management frame dynamic rx buffer num: 32
83 I (639) wifi: Init management short buffer num: 32
[all …]
/hal_espressif-3.5.0/components/esp_rom/include/esp32/rom/
Dcache.h69 …che_flash_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num) in cache_flash_mmu_set() argument
71 …lash_mmu_set_rom(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num); in cache_flash_mmu_set()
76 ret = cache_flash_mmu_set_rom(cpu_no, pid, vaddr, paddr, psize, num); in cache_flash_mmu_set()
112 …ache_sram_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num);
/hal_espressif-3.5.0/components/soc/esp32s3/include/soc/
Dio_mux_reg.h144 #define GPIO_PAD_PULLDOWN(num) do{PIN_PULLDWN_DIS(IOMUX_REG_GPIO##num);PIN_PULLUP_EN(IOMUX_REG_GPIO… argument
145 #define GPIO_PAD_PULLUP(num) do{PIN_PULLUP_DIS(IOMUX_REG_GPIO##num);PIN_PULLDWN_EN(IOMUX_REG_GPIO## argument
146 #define GPIO_PAD_SET_DRV(num, drv) PIN_SET_DRV(IOMUX_REG_GPIO##num, drv) argument
/hal_espressif-3.5.0/components/soc/esp32s2/include/soc/
Dio_mux_reg.h144 #define GPIO_PAD_PULLDOWN(num) do{PIN_PULLDWN_DIS(IOMUX_REG_GPIO##num);PIN_PULLUP_EN(IOMUX_REG_GPIO… argument
145 #define GPIO_PAD_PULLUP(num) do{PIN_PULLUP_DIS(IOMUX_REG_GPIO##num);PIN_PULLDWN_EN(IOMUX_REG_GPIO## argument
146 #define GPIO_PAD_SET_DRV(num, drv) PIN_SET_DRV(IOMUX_REG_GPIO##num, drv) argument
/hal_espressif-3.5.0/examples/wifi/scan/
DREADME.md48 I (453) wifi:Init data frame dynamic rx buffer num: 32
49 I (453) wifi:Init management frame dynamic rx buffer num: 32
50 I (463) wifi:Init management short buffer num: 32
51 I (463) wifi:Init dynamic tx buffer num: 32
52 I (473) wifi:Init static tx FG buffer num: 2
54 I (473) wifi:Init static rx buffer num: 10
55 I (483) wifi:Init dynamic rx buffer num: 32
/hal_espressif-3.5.0/components/esp_netif/lwip/
Desp_netif_sta_list.c34 netif_sta_list->num = wifi_sta_list->num; in esp_netif_get_sta_list()
35 for (int i = 0; i < wifi_sta_list->num; i++) { in esp_netif_get_sta_list()
/hal_espressif-3.5.0/examples/cxx/experimental/experimental_cpp_component/include/
Dgpio_cxx.hpp241 GPIOBase(GPIONum num);
299 GPIO_Output(GPIONum num);
332 GPIOInput(GPIONum num);
380 GPIO_OpenDrain(GPIONum num);
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Diot_led.c43 size_t num; member
336 if (fade_data->num > 0) { in fade_timercb()
337 fade_data->num--; in fade_timercb()
342 if (fade_data->num != 0) { in fade_timercb()
356 fade_data->num = fade_data->cycle - 1; in fade_timercb()
489 fade_data->num = 1; in iot_led_set_channel()
491 fade_data->num = fade_ms / DUTY_SET_CYCLE; in iot_led_set_channel()
494 fade_data->step = abs(fade_data->cur - fade_data->final) / fade_data->num; in iot_led_set_channel()
521 fade_data->num = (fade_flag) ? period_ms / 2 / DUTY_SET_CYCLE : 0; in iot_led_start_blink()
522 fade_data->step = (fade_flag) ? fade_data->cur / fade_data->num * -1 : 0; in iot_led_start_blink()
[all …]
/hal_espressif-3.5.0/components/heap/
Dheap_caps.c254 IRAM_ATTR void *heap_caps_malloc_prefer( size_t size, size_t num, ... ) in heap_caps_malloc_prefer() argument
257 va_start( argp, num ); in heap_caps_malloc_prefer()
259 while (num--) { in heap_caps_malloc_prefer()
273 IRAM_ATTR void *heap_caps_realloc_prefer( void *ptr, size_t size, size_t num, ... ) in heap_caps_realloc_prefer() argument
276 va_start( argp, num ); in heap_caps_realloc_prefer()
278 while (num--) { in heap_caps_realloc_prefer()
292 IRAM_ATTR void *heap_caps_calloc_prefer( size_t n, size_t size, size_t num, ... ) in heap_caps_calloc_prefer() argument
295 va_start( argp, num ); in heap_caps_calloc_prefer()
297 while (num--) { in heap_caps_calloc_prefer()

1234567