/hal_espressif-2.7.6/components/driver/test/touch_sensor_test/ |
D | test_esp32s2.c | 135 TEST_ESP_OK( touch_pad_read_benchmark(touch_list[i], &touch_value) ); in printf_touch_benchmark_read() 201 TEST_ESP_OK( touch_pad_read_benchmark(touch_list[i], &touch_val[i]) ); in test_touch_benchmark() 206 TEST_ESP_OK( touch_pad_read_benchmark(touch_list[i], &touch_temp[i]) ); in test_touch_benchmark() 223 TEST_ESP_OK( touch_pad_init() ); in test_touch_sw_read() 225 TEST_ESP_OK( touch_pad_config(touch_list[i]) ); in test_touch_sw_read() 227 TEST_ESP_OK( touch_pad_set_fsm_mode(TOUCH_FSM_MODE_SW) ); in test_touch_sw_read() 228 TEST_ESP_OK( touch_pad_fsm_start() ); in test_touch_sw_read() 235 TEST_ESP_OK( touch_pad_sw_start() ); in test_touch_sw_read() 237 TEST_ESP_OK( touch_pad_read_raw_data(touch_list[i], &touch_value[i]) ); in test_touch_sw_read() 254 TEST_ESP_OK( touch_pad_sw_start() ); in test_touch_sw_read() [all …]
|
D | test_esp32.c | 100 TEST_ESP_OK( touch_pad_init() ); in test_touch_sw_read_test_runner() 101 TEST_ESP_OK( touch_pad_set_fsm_mode(TOUCH_FSM_MODE_SW) ); in test_touch_sw_read_test_runner() 104 TEST_ESP_OK( touch_pad_config(touch_list[i], TOUCH_READ_INVALID_VAL) ); in test_touch_sw_read_test_runner() 115 TEST_ESP_OK( touch_pad_deinit() ); in test_touch_sw_read_test_runner() 125 TEST_ESP_OK( touch_pad_init() ); in test_touch_sw_read() 126 TEST_ESP_OK( touch_pad_set_fsm_mode(TOUCH_FSM_MODE_SW) ); in test_touch_sw_read() 129 TEST_ESP_OK( touch_pad_config(touch_list[i], TOUCH_READ_INVALID_VAL) ); in test_touch_sw_read() 135 TEST_ESP_OK( touch_pad_read(touch_list[i], &touch_value) ); in test_touch_sw_read() 141 TEST_ESP_OK( touch_pad_deinit() ); in test_touch_sw_read() 152 TEST_ESP_OK( touch_pad_init() ); in test_touch_timer_read() [all …]
|
/hal_espressif-2.7.6/components/driver/test/ |
D | test_pcnt.c | 116 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in event_calculate() 139 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in event_calculate() 204 TEST_ESP_OK(pcnt_unit_config(&pcnt_config)); in count_mode_test() 216 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test() 217 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test() 218 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test() 221 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test() 223 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test() 228 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test() 229 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test() [all …]
|
D | test_rmt.c | 47 TEST_ESP_OK(rmt_config(&tx_config)); in rmt_setup_testbench() 63 TEST_ESP_OK(rmt_config(&rx_config)); in rmt_setup_testbench() 68 TEST_ESP_OK(gpio_set_direction(RMT_DATA_IO, GPIO_MODE_INPUT_OUTPUT)); in rmt_setup_testbench() 74 TEST_ESP_OK(rmt_driver_install(tx_channel, 0, 0)); in rmt_setup_testbench() 83 TEST_ESP_OK(rmt_driver_install(rx_channel, 3000, 0)); in rmt_setup_testbench() 95 TEST_ESP_OK(rmt_driver_uninstall(tx_channel)); in rmt_clean_testbench() 96 TEST_ESP_OK(s_ir_builder->del(s_ir_builder)); in rmt_clean_testbench() 101 TEST_ESP_OK(rmt_driver_uninstall(rx_channel)); in rmt_clean_testbench() 102 TEST_ESP_OK(s_ir_parser->del(s_ir_parser)); in rmt_clean_testbench() 138 TEST_ESP_OK(rmt_set_mem_block_num(channel, 2)); [all …]
|
D | test_gpio.c | 121 TEST_ESP_OK(gpio_wakeup_enable(TEST_GPIO_EXT_IN_IO, GPIO_INTR_HIGH_LEVEL)); in sleep_wake_up() 155 TEST_ESP_OK(gpio_config(&pad_io)); in drive_capability_set_get() 159 TEST_ESP_OK(gpio_set_drive_capability(num, capability)); in drive_capability_set_get() 160 TEST_ESP_OK(gpio_get_drive_capability(num, &cap)); in drive_capability_set_get() 184 TEST_ESP_OK(gpio_config(&io_config)); 190 TEST_ESP_OK(gpio_config(&io_config)); 208 TEST_ESP_OK(gpio_config(&output_io)); 209 TEST_ESP_OK(gpio_config(&input_io)); 210 TEST_ESP_OK(gpio_set_level(TEST_GPIO_EXT_OUT_IO, 0)); 213 TEST_ESP_OK(gpio_set_intr_type(TEST_GPIO_EXT_IN_IO, GPIO_INTR_POSEDGE)); [all …]
|
D | test_adc_common.c | 71 TEST_ESP_OK(rtc_gpio_init(gpio_num)); in adc_fake_tie_middle() 72 TEST_ESP_OK(rtc_gpio_pullup_en(gpio_num)); in adc_fake_tie_middle() 73 TEST_ESP_OK(rtc_gpio_pulldown_en(gpio_num)); in adc_fake_tie_middle() 74 TEST_ESP_OK(gpio_set_pull_mode(gpio_num, GPIO_PULLUP_PULLDOWN)); in adc_fake_tie_middle() 75 TEST_ESP_OK(rtc_gpio_set_direction(gpio_num, RTC_GPIO_MODE_DISABLED)); in adc_fake_tie_middle() 79 TEST_ESP_OK(rtc_gpio_init(gpio_num)); in adc_fake_tie_middle() 80 TEST_ESP_OK(rtc_gpio_pullup_en(gpio_num)); in adc_fake_tie_middle() 81 TEST_ESP_OK(rtc_gpio_pulldown_en(gpio_num)); in adc_fake_tie_middle() 82 TEST_ESP_OK(gpio_set_pull_mode(gpio_num, GPIO_PULLUP_PULLDOWN)); in adc_fake_tie_middle() 83 TEST_ESP_OK(rtc_gpio_set_direction(gpio_num, RTC_GPIO_MODE_DISABLED)); in adc_fake_tie_middle() [all …]
|
D | test_i2c.c | 78 TEST_ESP_OK(i2c_master_write_byte(cmd, ( ESP_SLAVE_ADDR << 1 ) | WRITE_BIT, ACK_CHECK_EN)); in i2c_master_write_slave() 79 TEST_ESP_OK(i2c_master_write(cmd, data_wr, size, ACK_CHECK_EN)); in i2c_master_write_slave() 80 TEST_ESP_OK(i2c_master_stop(cmd)); in i2c_master_write_slave() 130 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER, 133 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master)); 135 TEST_ESP_OK(i2c_driver_delete(I2C_MASTER_NUM)); 145 TEST_ESP_OK(i2c_driver_install(I2C_SLAVE_NUM, I2C_MODE_SLAVE, 148 TEST_ESP_OK(i2c_param_config( I2C_SLAVE_NUM, &conf_slave)); 150 TEST_ESP_OK(i2c_driver_delete(I2C_SLAVE_NUM)); 161 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER, [all …]
|
D | test_gdma.c | 18 TEST_ESP_OK(gdma_new_channel(&channel_config, &tx_channels[i])); 19 TEST_ESP_OK(gdma_connect(tx_channels[i], GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_M2M, 0))); 20 TEST_ESP_OK(gdma_register_tx_event_callbacks(tx_channels[i], &tx_cbs, NULL)); 27 TEST_ESP_OK(gdma_new_channel(&channel_config, &rx_channels[i])); 28 TEST_ESP_OK(gdma_connect(rx_channels[i], GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_M2M, 0))); 29 TEST_ESP_OK(gdma_register_rx_event_callbacks(rx_channels[i], &rx_cbs, NULL)); 34 TEST_ESP_OK(gdma_disconnect(tx_channels[i])); 35 TEST_ESP_OK(gdma_disconnect(rx_channels[i])); 36 TEST_ESP_OK(gdma_del_channel(tx_channels[i])); 37 TEST_ESP_OK(gdma_del_channel(rx_channels[i])); [all …]
|
D | test_adc2_with_wifi.c | 54 TEST_ESP_OK(esp_wifi_connect()); in wifi_event_handler() 82 TEST_ESP_OK(esp_event_loop_create_default()); in event_init() 103 TEST_ESP_OK( dac_output_enable( DAC_CHANNEL_1 )); 104 TEST_ESP_OK( dac_output_enable( DAC_CHANNEL_2 )); 105 TEST_ESP_OK( dac_output_voltage( DAC_CHANNEL_1, 30 )); 106 TEST_ESP_OK( dac_output_voltage( DAC_CHANNEL_2, 60 )); 107 TEST_ESP_OK( adc2_config_channel_atten( ADC_TEST_CH1, ADC_ATTEN_0db )); 108 TEST_ESP_OK( adc2_config_channel_atten( ADC_TEST_CH2, ADC_ATTEN_0db )); 114 TEST_ESP_OK(nvs_flash_erase()); 117 TEST_ESP_OK( r); [all …]
|
D | test_ledc.c | 68 TEST_ESP_OK(ledc_set_duty(speed_mode, channel, duty)); in timer_duty_set_get() 69 TEST_ESP_OK(ledc_update_duty(speed_mode, channel)); in timer_duty_set_get() 87 TEST_ESP_OK(ledc_channel_config(&ledc_ch_config)); in timer_duty_test() 88 TEST_ESP_OK(ledc_timer_config(&ledc_time_config)); in timer_duty_test() 120 TEST_ESP_OK(pcnt_unit_config(&pcnt_config)); in wave_count() 123 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in wave_count() 124 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in wave_count() 126 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in wave_count() 127 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in wave_count() 130 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in wave_count() [all …]
|
D | test_dac.c | 47 TEST_ESP_OK( adc2_pad_get_io_num( ADC_TEST_CHANNEL_NUM, &adc_gpio_num ) ); 48 TEST_ESP_OK( dac_pad_get_io_num( DAC_TEST_CHANNEL_NUM, &dac_gpio_num ) ); 53 TEST_ESP_OK( dac_output_enable( DAC_TEST_CHANNEL_NUM ) ); 57 TEST_ESP_OK( adc2_config_channel_atten( ADC_TEST_CHANNEL_NUM, ADC_TEST_ATTEN ) ); 65 TEST_ESP_OK( dac_output_voltage( DAC_TEST_CHANNEL_NUM, output_data ) ); 68 TEST_ESP_OK( adc2_get_raw( ADC_TEST_CHANNEL_NUM, ADC_TEST_WIDTH, &read_raw) ); 75 TEST_ESP_OK( dac_output_disable( DAC_TEST_CHANNEL_NUM ) ); 82 TEST_ESP_OK( adc2_pad_get_io_num( ADC_TEST_CHANNEL_NUM, &adc_gpio_num ) ); 83 TEST_ESP_OK( dac_pad_get_io_num( DAC_TEST_CHANNEL_NUM, &dac_gpio_num ) ); 99 TEST_ESP_OK( dac_cw_generator_config(&cw) ); [all …]
|
D | test_spi_bus_lock.c | 55 TEST_ESP_OK(spi_device_polling_transmit( handle, &t )); in spi_task1() 58 TEST_ESP_OK(spi_device_acquire_bus( handle, portMAX_DELAY )); in spi_task1() 60 TEST_ESP_OK(spi_device_polling_transmit( handle, &t )); in spi_task1() 80 TEST_ESP_OK(spi_device_acquire_bus( handle, portMAX_DELAY )); in spi_task2() 83 TEST_ESP_OK(spi_device_polling_transmit(handle, &t)); in spi_task2() 88 TEST_ESP_OK(spi_device_queue_trans(handle, &t, portMAX_DELAY)); in spi_task2() 91 TEST_ESP_OK(spi_device_get_trans_result(handle, &ret_t, portMAX_DELAY)); in spi_task2() 115 TEST_ESP_OK(spi_device_polling_transmit(handle, &t)); in spi_task3() 119 TEST_ESP_OK(spi_device_acquire_bus( handle, portMAX_DELAY )); in spi_task3() 121 TEST_ESP_OK(spi_device_polling_transmit(handle, &t)); in spi_task3() [all …]
|
D | test_timer.c | 116 TEST_ESP_OK(timer_deinit(tg_idx, timer_idx)); in all_timer_deinit() 130 TEST_ESP_OK(timer_start(tg_idx, timer_idx)); in all_timer_start() 139 TEST_ESP_OK(timer_set_counter_value(tg_idx, timer_idx, set_cnt_val)); in all_timer_set_counter_value() 148 TEST_ESP_OK(timer_pause(tg_idx, timer_idx)); in all_timer_pause() 159 TEST_ESP_OK(timer_get_counter_value(tg_idx, timer_idx, ¤t_cnt_val)); in all_timer_get_counter_value() 177 TEST_ESP_OK(timer_get_counter_time_sec(tg_idx, timer_idx, &time)); in all_timer_get_counter_time_sec() 187 TEST_ESP_OK(timer_set_counter_mode(tg_idx, timer_idx, counter_dir)); in all_timer_set_counter_mode() 196 TEST_ESP_OK(timer_set_divider(tg_idx, timer_idx, divider)); in all_timer_set_divider() 205 TEST_ESP_OK(timer_set_alarm_value(tg_idx, timer_idx, alarm_cnt_val)); in all_timer_set_alarm_value() 214 …TEST_ESP_OK(timer_get_alarm_value(tg_idx, timer_idx, &alarm_vals[tg_idx * SOC_TIMER_GROUP_TIMERS_P… in all_timer_get_alarm_value() [all …]
|
D | test_uart.c | 45 TEST_ESP_OK(uart_set_loop_back(UART_NUM1, true)); in uart_config() 95 TEST_ESP_OK(uart_driver_delete(UART_NUM1)); 144 TEST_ESP_OK(uart_set_word_length(uart_num, word_length_set)); in uart_word_len_set_get_test() 145 TEST_ESP_OK(uart_get_word_length(uart_num, &word_length_get)); in uart_word_len_set_get_test() 157 TEST_ESP_OK(uart_set_stop_bits(uart_num, stop_bit_set)); in uart_stop_bit_set_get_test() 158 TEST_ESP_OK(uart_get_stop_bits(uart_num, &stop_bit_get)); in uart_stop_bit_set_get_test() 173 TEST_ESP_OK(uart_set_parity(uart_num, parity_set[i])); in uart_parity_set_get_test() 174 TEST_ESP_OK(uart_get_parity(uart_num, &parity_get)); in uart_parity_set_get_test() 185 TEST_ESP_OK(uart_set_hw_flow_ctrl(uart_num, flowcontrol_set, 20)); in uart_hw_flow_set_get_test() 186 TEST_ESP_OK(uart_get_hw_flow_ctrl(uart_num, &flowcontrol_get)); in uart_hw_flow_set_get_test() [all …]
|
/hal_espressif-2.7.6/components/esp_eth/test/ |
D | test_emac.c | 157 TEST_ESP_OK(esp_eth_driver_install(ð_config, ð_handle)); 161 TEST_ESP_OK(esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr)); 167 TEST_ESP_OK(esp_eth_ioctl(eth_handle, ETH_CMD_G_PHY_ADDR, &phy_addr)); 170 TEST_ESP_OK(esp_eth_driver_uninstall(eth_handle)); 171 TEST_ESP_OK(phy->del(phy)); 172 TEST_ESP_OK(mac->del(mac)); 180 TEST_ESP_OK(esp_event_loop_create_default()); 181 …TEST_ESP_OK(esp_event_handler_register(ETH_EVENT, ESP_EVENT_ANY_ID, ð_event_handler, eth_event_… 188 TEST_ESP_OK(esp_eth_driver_install(ð_config, ð_handle)); 190 TEST_ESP_OK(esp_eth_start(eth_handle)); [all …]
|
/hal_espressif-2.7.6/components/nvs_flash/test/ |
D | test_nvs.c | 38 TEST_ESP_OK( err ); 40 TEST_ESP_OK(nvs_flash_init()); 41 TEST_ESP_OK(nvs_open("uninit_ns", NVS_READWRITE, &handle)); 43 TEST_ESP_OK(nvs_flash_erase()); 64 TEST_ESP_OK(nvs_open("deinit_ns", NVS_READWRITE, &handle_1)); 84 TEST_ESP_OK(nvs_open("test_namespace2", NVS_READWRITE, &handle_1)); 85 TEST_ESP_OK(nvs_erase_all(handle_1)); 86 TEST_ESP_OK(nvs_set_i32(handle_1, "foo", 0x12345678)); 87 TEST_ESP_OK(nvs_set_i32(handle_1, "foo", 0x23456789)); 90 TEST_ESP_OK(nvs_open("test_namespace3", NVS_READWRITE, &handle_2)); [all …]
|
/hal_espressif-2.7.6/components/esp_event/test/ |
D | test_event.c | 180 TEST_ESP_OK(esp_event_post_to(data->loop, data->base, data->id, NULL, 0, portMAX_DELAY)); in test_event_post_task() 198 …TEST_ESP_OK(esp_event_handler_register_with(data->loop, data->base, data->id, data->handles[i], NU… in test_event_simple_handler_registration_task() 200 …TEST_ESP_OK(esp_event_handler_unregister_with(data->loop, data->base, data->id, data->handles[i])); in test_event_simple_handler_registration_task() 221 … TEST_ESP_OK(esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_w_task() 246 … TEST_ESP_OK(esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_wo_task() 255 … TEST_ESP_OK(esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_wo_task() 269 …TEST_ESP_OK(esp_event_handler_unregister_with(*loop, event_base, event_id, test_handler_unregister… in test_handler_unregister_itself() 282 TEST_ESP_OK(esp_event_handler_instance_unregister_with(*loop, event_base, event_id, *context)); in test_handler_instance_unregister_itself() 290 TEST_ESP_OK(esp_event_loop_run(event_loop, portMAX_DELAY)); in test_post_from_handler_loop_task() 297 TEST_ESP_OK(esp_event_loop_create_default()); in test_setup() [all …]
|
D | test_default_loop.c | 78 TEST_ESP_OK(esp_event_loop_create_default()); 80 TEST_ESP_OK(esp_event_loop_delete_default()); 106 TEST_ESP_OK(esp_event_loop_create_default()); 109 TEST_ESP_OK(esp_event_handler_instance_register(s_default_test_base1, 115 TEST_ESP_OK(esp_event_post(s_default_test_base1, TEST_EVENT_BASE1_EV1, NULL, 0, portMAX_DELAY)); 121 TEST_ESP_OK(esp_event_handler_instance_unregister(s_default_test_base1, 129 TEST_ESP_OK(esp_event_loop_delete_default()); 144 TEST_ESP_OK(esp_event_loop_create_default()); 146 …TEST_ESP_OK(esp_event_handler_instance_register(ESP_EVENT_ANY_BASE, ESP_EVENT_ANY_ID, test_event_s… 148 TEST_ESP_OK(esp_event_post(s_default_test_base1, TEST_EVENT_BASE1_EV1, NULL, 0, portMAX_DELAY)); [all …]
|
/hal_espressif-2.7.6/components/efuse/test/ |
D | test_efuse.c | 33 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY, &mac, sizeof(mac) * 8)); in test_read_blob() 40 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY_CRC, &crc, 8)); in test_read_blob() 50 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY, &half_byte, 4)); in test_read_blob() 54 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY, &buff, sizeof(buff) * 8)); in test_read_blob() 76 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY, &mac, 48)); in test_read_cnt() 78 TEST_ESP_OK(esp_efuse_read_field_cnt(ESP_EFUSE_MAC_FACTORY, &cnt)); in test_read_cnt() 107 TEST_ESP_OK(esp_efuse_write_field_blob(ESP_EFUSE_TEST1_LEN_8, &test1_len_8, 7)); in test_write_blob() 110 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_TEST1_LEN_8, &val_read1, 8)); in test_write_blob() 115 TEST_ESP_OK(esp_efuse_write_field_blob(ESP_EFUSE_TEST1_LEN_8, &test1_len_8_hi, 8)); in test_write_blob() 122 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_TEST1_LEN_8, &val_read1, 16)); in test_write_blob() [all …]
|
/hal_espressif-2.7.6/components/nvs_flash/test_nvs_host/ |
D | test_nvs.cpp | 34 #define TEST_ESP_OK(rc) CHECK((rc) == ESP_OK) macro 231 TEST_ESP_OK(page.load(&f.part, 0)); 232 TEST_ESP_OK(page.writeItem(1, "i1", 1)); 233 TEST_ESP_OK(page.writeItem(1, "i2", 2)); 238 TEST_ESP_OK(page.readItem(1, keyname, value)); 241 TEST_ESP_OK(page.readItem(1, keyname, value)); 250 TEST_ESP_OK(page.load(&f.part, 0)); 254 TEST_ESP_OK(page.writeItem(1, "012345678912345", 1)); 261 TEST_ESP_OK(page.load(&f.part, 0)); 271 TEST_ESP_OK(page.writeItem(1, ItemType::BLOB, "2", buf, Page::CHUNK_MAX_SIZE)); [all …]
|
/hal_espressif-2.7.6/components/esp_wifi/test/ |
D | test_wifi_init.c | 30 TEST_ESP_OK(esp_wifi_connect()); in wifi_event_handler() 85 TEST_ESP_OK(nvs_flash_erase()); in wifi_driver_can_start_on_APP_CPU_task() 88 TEST_ESP_OK(r); in wifi_driver_can_start_on_APP_CPU_task() 90 TEST_ESP_OK(event_init()); in wifi_driver_can_start_on_APP_CPU_task() 92 TEST_ESP_OK(esp_wifi_init(&cfg)); in wifi_driver_can_start_on_APP_CPU_task() 94 TEST_ESP_OK(esp_wifi_deinit()); in wifi_driver_can_start_on_APP_CPU_task() 96 TEST_ESP_OK(event_deinit()); in wifi_driver_can_start_on_APP_CPU_task() 98 TEST_ESP_OK(nvs_flash_deinit()); in wifi_driver_can_start_on_APP_CPU_task() 130 TEST_ESP_OK(nvs_flash_erase()); in wifi_start_stop_task() 133 TEST_ESP_OK(r); in wifi_start_stop_task() [all …]
|
D | test_wifi.c | 46 TEST_ESP_OK(esp_wifi_connect()); in wifi_event_handler() 101 TEST_ESP_OK(esp_wifi_init(cfg)); in test_wifi_init_deinit() 103 TEST_ESP_OK(esp_wifi_set_mode(WIFI_MODE_STA)); in test_wifi_init_deinit() 105 TEST_ESP_OK(esp_wifi_set_config(WIFI_IF_STA, wifi_config)); in test_wifi_init_deinit() 107 TEST_ESP_OK(esp_wifi_deinit()); in test_wifi_init_deinit() 115 TEST_ESP_OK(esp_wifi_init(cfg)); in test_wifi_start_stop() 117 TEST_ESP_OK(esp_wifi_set_mode(WIFI_MODE_STA)); in test_wifi_start_stop() 119 TEST_ESP_OK(esp_wifi_set_config(WIFI_IF_STA, wifi_config)); in test_wifi_start_stop() 122 TEST_ESP_OK(esp_wifi_start()); in test_wifi_start_stop() 125 TEST_ESP_OK( esp_wifi_stop() ); in test_wifi_start_stop() [all …]
|
/hal_espressif-2.7.6/components/app_update/test/ |
D | test_switch_ota.c | 51 …TEST_ESP_OK(esp_partition_mmap(curr_app, 0, curr_app->size, SPI_FLASH_MMAP_DATA, &partition_bin, &… in copy_app_partition() 52 TEST_ESP_OK(esp_ota_write(update_handle, (const void *)partition_bin, curr_app->size)); in copy_app_partition() 71 …TEST_ESP_OK(esp_partition_mmap(curr_app, offset, write_bytes, SPI_FLASH_MMAP_DATA, &partition_bin,… in copy_app_partition_with_offset() 72 …TEST_ESP_OK(esp_ota_write_with_offset(update_handle, (const void *)partition_bin, write_bytes, off… in copy_app_partition_with_offset() 91 …TEST_ESP_OK(esp_partition_mmap(src_partition, 0, src_partition->size, SPI_FLASH_MMAP_DATA, &partit… in copy_partition() 92 TEST_ESP_OK(esp_partition_erase_range(dst_partition, 0, dst_partition->size)); in copy_partition() 93 …TEST_ESP_OK(esp_partition_write(dst_partition, 0, (const void *)partition_bin, dst_partition->size… in copy_partition() 122 TEST_ESP_OK(esp_ota_begin(next_app_partition, OTA_SIZE_UNKNOWN, &update_handle)); in copy_current_app_to_next_part() 126 TEST_ESP_OK(esp_ota_end(update_handle)); in copy_current_app_to_next_part() 127 TEST_ESP_OK(esp_ota_set_boot_partition(next_app_partition)); in copy_current_app_to_next_part() [all …]
|
/hal_espressif-2.7.6/components/sdmmc/test/ |
D | test_sd.c | 107 TEST_ESP_OK(sdmmc_host_init()); in probe_sd() 108 TEST_ESP_OK(sdmmc_host_init_slot(slot, &slot_config)); in probe_sd() 111 TEST_ESP_OK(sdmmc_card_init(&config, card)); in probe_sd() 114 TEST_ESP_OK(sdmmc_read_sectors(card, buffer, 0, 1)); in probe_sd() 116 TEST_ESP_OK(sdmmc_host_deinit()); in probe_sd() 177 TEST_ESP_OK(err); in test_sdspi_init_bus() 183 TEST_ESP_OK(err); in test_sdspi_deinit_bus() 194 TEST_ESP_OK(sdmmc_card_init(&config, card)); in probe_core() 207 TEST_ESP_OK(sdspi_host_init()); in probe_spi() 208 TEST_ESP_OK(sdspi_host_init_device(&dev_config, &handle)); in probe_spi() [all …]
|
D | test_sdio.c | 138 TEST_ESP_OK(gpio_config(&gpio_cfg)); in reset_slave() 151 TEST_ESP_OK(err); in sdio_slave_common_init() 156 TEST_ESP_OK(err); in sdio_slave_common_init() 164 TEST_ESP_OK(err); in sdio_slave_common_init() 169 TEST_ESP_OK(err); in sdio_slave_common_init() 175 TEST_ESP_OK(err); in sdio_slave_common_init() 178 TEST_ESP_OK(err); in sdio_slave_common_init() 184 TEST_ESP_OK(err); in sdio_slave_common_init() 191 TEST_ESP_OK(err); in sdio_slave_common_init() 197 TEST_ESP_OK(err); in sdio_slave_common_init() [all …]
|