Home
last modified time | relevance | path

Searched refs:TEST_ESP_OK (Results 1 – 25 of 94) sorted by relevance

1234

/hal_espressif-3.6.0/components/driver/test/touch_sensor_test/
Dtest_touch_v2.c127 TEST_ESP_OK( touch_pad_read_benchmark(touch_list[i], &touch_value) ); in printf_touch_benchmark_read()
193 TEST_ESP_OK( touch_pad_read_benchmark(touch_list[i], &touch_val[i]) ); in test_touch_benchmark()
198 TEST_ESP_OK( touch_pad_read_benchmark(touch_list[i], &touch_temp[i]) ); in test_touch_benchmark()
215 TEST_ESP_OK( touch_pad_init() ); in test_touch_sw_read()
217 TEST_ESP_OK( touch_pad_config(touch_list[i]) ); in test_touch_sw_read()
219 TEST_ESP_OK( touch_pad_set_fsm_mode(TOUCH_FSM_MODE_SW) ); in test_touch_sw_read()
220 TEST_ESP_OK( touch_pad_fsm_start() ); in test_touch_sw_read()
227 TEST_ESP_OK( touch_pad_sw_start() ); in test_touch_sw_read()
229 TEST_ESP_OK( touch_pad_read_raw_data(touch_list[i], &touch_value[i]) ); in test_touch_sw_read()
246 TEST_ESP_OK( touch_pad_sw_start() ); in test_touch_sw_read()
[all …]
Dtest_touch_v1.c92 TEST_ESP_OK( touch_pad_init() ); in test_touch_sw_read_test_runner()
93 TEST_ESP_OK( touch_pad_set_fsm_mode(TOUCH_FSM_MODE_SW) ); in test_touch_sw_read_test_runner()
96 TEST_ESP_OK( touch_pad_config(touch_list[i], TOUCH_READ_INVALID_VAL) ); in test_touch_sw_read_test_runner()
107 TEST_ESP_OK( touch_pad_deinit() ); in test_touch_sw_read_test_runner()
117 TEST_ESP_OK( touch_pad_init() ); in test_touch_sw_read()
118 TEST_ESP_OK( touch_pad_set_fsm_mode(TOUCH_FSM_MODE_SW) ); in test_touch_sw_read()
121 TEST_ESP_OK( touch_pad_config(touch_list[i], TOUCH_READ_INVALID_VAL) ); in test_touch_sw_read()
127 TEST_ESP_OK( touch_pad_read(touch_list[i], &touch_value) ); in test_touch_sw_read()
133 TEST_ESP_OK( touch_pad_deinit() ); in test_touch_sw_read()
144 TEST_ESP_OK( touch_pad_init() ); in test_touch_timer_read()
[all …]
/hal_espressif-3.6.0/components/driver/test/
Dtest_pcnt.c122 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in event_calculate()
145 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in event_calculate()
210 TEST_ESP_OK(pcnt_unit_config(&pcnt_config)); in count_mode_test()
222 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
223 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
224 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test()
227 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test()
229 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test()
234 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
235 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
[all …]
Dtest_rmt.c52 TEST_ESP_OK(rmt_config(&tx_config)); in rmt_setup_testbench()
68 TEST_ESP_OK(rmt_config(&rx_config)); in rmt_setup_testbench()
73 TEST_ESP_OK(gpio_set_direction(RMT_DATA_IO, GPIO_MODE_INPUT_OUTPUT)); in rmt_setup_testbench()
79 TEST_ESP_OK(rmt_driver_install(tx_channel, 0, 0)); in rmt_setup_testbench()
88 TEST_ESP_OK(rmt_driver_install(rx_channel, 3000, 0)); in rmt_setup_testbench()
100 TEST_ESP_OK(rmt_driver_uninstall(tx_channel)); in rmt_clean_testbench()
101 TEST_ESP_OK(s_ir_builder->del(s_ir_builder)); in rmt_clean_testbench()
106 TEST_ESP_OK(rmt_driver_uninstall(rx_channel)); in rmt_clean_testbench()
107 TEST_ESP_OK(s_ir_parser->del(s_ir_parser)); in rmt_clean_testbench()
143 TEST_ESP_OK(rmt_set_mem_block_num(channel, 2));
[all …]
Dtest_gpio.c142 TEST_ESP_OK(gpio_wakeup_enable(TEST_GPIO_EXT_IN_IO, GPIO_INTR_HIGH_LEVEL)); in sleep_wake_up()
176 TEST_ESP_OK(gpio_config(&pad_io)); in drive_capability_set_get()
180 TEST_ESP_OK(gpio_set_drive_capability(num, capability)); in drive_capability_set_get()
181 TEST_ESP_OK(gpio_get_drive_capability(num, &cap)); in drive_capability_set_get()
205 TEST_ESP_OK(gpio_config(&io_config));
211 TEST_ESP_OK(gpio_config(&io_config));
229 TEST_ESP_OK(gpio_config(&output_io));
230 TEST_ESP_OK(gpio_config(&input_io));
231 TEST_ESP_OK(gpio_set_level(TEST_GPIO_EXT_OUT_IO, 0));
234 TEST_ESP_OK(gpio_set_intr_type(TEST_GPIO_EXT_IN_IO, GPIO_INTR_POSEDGE));
[all …]
Dtest_adc_common.c76 TEST_ESP_OK(rtc_gpio_init(gpio_num)); in adc_fake_tie_middle()
77 TEST_ESP_OK(rtc_gpio_pullup_en(gpio_num)); in adc_fake_tie_middle()
78 TEST_ESP_OK(rtc_gpio_pulldown_en(gpio_num)); in adc_fake_tie_middle()
79 TEST_ESP_OK(gpio_set_pull_mode(gpio_num, GPIO_PULLUP_PULLDOWN)); in adc_fake_tie_middle()
80 TEST_ESP_OK(rtc_gpio_set_direction(gpio_num, RTC_GPIO_MODE_DISABLED)); in adc_fake_tie_middle()
84 TEST_ESP_OK(rtc_gpio_init(gpio_num)); in adc_fake_tie_middle()
85 TEST_ESP_OK(rtc_gpio_pullup_en(gpio_num)); in adc_fake_tie_middle()
86 TEST_ESP_OK(rtc_gpio_pulldown_en(gpio_num)); in adc_fake_tie_middle()
87 TEST_ESP_OK(gpio_set_pull_mode(gpio_num, GPIO_PULLUP_PULLDOWN)); in adc_fake_tie_middle()
88 TEST_ESP_OK(rtc_gpio_set_direction(gpio_num, RTC_GPIO_MODE_DISABLED)); in adc_fake_tie_middle()
[all …]
Dtest_ledc.c79 TEST_ESP_OK(ledc_channel_config(&ledc_ch_config)); in fade_setup()
80 TEST_ESP_OK(ledc_timer_config(&ledc_time_config)); in fade_setup()
84 TEST_ESP_OK(ledc_fade_func_install(0)); in fade_setup()
89 TEST_ESP_OK(ledc_set_duty(speed_mode, channel, duty)); in timer_duty_set_get()
90 TEST_ESP_OK(ledc_update_duty(speed_mode, channel)); in timer_duty_set_get()
108 TEST_ESP_OK(ledc_channel_config(&ledc_ch_config)); in timer_duty_test()
109 TEST_ESP_OK(ledc_timer_config(&ledc_time_config)); in timer_duty_test()
141 TEST_ESP_OK(pcnt_unit_config(&pcnt_config)); in wave_count()
144 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in wave_count()
145 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in wave_count()
[all …]
Dtest_i2c.c87 TEST_ESP_OK(i2c_master_write_byte(cmd, ( ESP_SLAVE_ADDR << 1 ) | WRITE_BIT, ACK_CHECK_EN)); in i2c_master_write_slave()
88 TEST_ESP_OK(i2c_master_write(cmd, data_wr, size, ACK_CHECK_EN)); in i2c_master_write_slave()
89 TEST_ESP_OK(i2c_master_stop(cmd)); in i2c_master_write_slave()
139 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER,
142 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master));
144 TEST_ESP_OK(i2c_driver_delete(I2C_MASTER_NUM));
154 TEST_ESP_OK(i2c_driver_install(I2C_SLAVE_NUM, I2C_MODE_SLAVE,
157 TEST_ESP_OK(i2c_param_config( I2C_SLAVE_NUM, &conf_slave));
159 TEST_ESP_OK(i2c_driver_delete(I2C_SLAVE_NUM));
170 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER,
[all …]
Dtest_timer.c121 TEST_ESP_OK(timer_deinit(tg_idx, timer_idx)); in all_timer_deinit()
135 TEST_ESP_OK(timer_start(tg_idx, timer_idx)); in all_timer_start()
144 TEST_ESP_OK(timer_set_counter_value(tg_idx, timer_idx, set_cnt_val)); in all_timer_set_counter_value()
153 TEST_ESP_OK(timer_pause(tg_idx, timer_idx)); in all_timer_pause()
164 TEST_ESP_OK(timer_get_counter_value(tg_idx, timer_idx, &current_cnt_val)); in all_timer_get_counter_value()
182 TEST_ESP_OK(timer_get_counter_time_sec(tg_idx, timer_idx, &time)); in all_timer_get_counter_time_sec()
192 TEST_ESP_OK(timer_set_counter_mode(tg_idx, timer_idx, counter_dir)); in all_timer_set_counter_mode()
201 TEST_ESP_OK(timer_set_divider(tg_idx, timer_idx, divider)); in all_timer_set_divider()
210 TEST_ESP_OK(timer_set_alarm_value(tg_idx, timer_idx, alarm_cnt_val)); in all_timer_set_alarm_value()
219TEST_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 …]
Dtest_pwm.c91 TEST_ESP_OK(pcnt_unit_config(&pcnt_config)); in mcpwm_setup_testbench()
93 TEST_ESP_OK(test_mcpwm_gpio_init(group, mcpwm_a, TEST_PWMA_GPIO)); in mcpwm_setup_testbench()
97 TEST_ESP_OK(pcnt_unit_config(&pcnt_config)); in mcpwm_setup_testbench()
99 TEST_ESP_OK(test_mcpwm_gpio_init(group, mcpwm_b, TEST_PWMB_GPIO)); in mcpwm_setup_testbench()
111 TEST_ESP_OK(mcpwm_init(group, timer, &pwm_config)); in mcpwm_setup_testbench()
117 TEST_ESP_OK(pcnt_counter_pause(pwm_pcnt_unit)); in mcpwm_pcnt_get_pulse_number()
118 TEST_ESP_OK(pcnt_counter_clear(pwm_pcnt_unit)); in mcpwm_pcnt_get_pulse_number()
119 TEST_ESP_OK(pcnt_counter_resume(pwm_pcnt_unit)); in mcpwm_pcnt_get_pulse_number()
121 TEST_ESP_OK(pcnt_get_counter_value(pwm_pcnt_unit, &count_value)); in mcpwm_pcnt_get_pulse_number()
131 TEST_ESP_OK(mcpwm_set_duty(unit, timer, MCPWM_OPR_A, 10.0)); in mcpwm_timer_duty_test()
[all …]
Dtest_gdma.c23 TEST_ESP_OK(gdma_new_channel(&channel_config, &tx_channels[i]));
24 TEST_ESP_OK(gdma_connect(tx_channels[i], GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_M2M, 0)));
25 TEST_ESP_OK(gdma_register_tx_event_callbacks(tx_channels[i], &tx_cbs, NULL));
31 TEST_ESP_OK(gdma_disconnect(tx_channels[i]));
32 TEST_ESP_OK(gdma_del_channel(tx_channels[i]));
38 TEST_ESP_OK(gdma_new_channel(&channel_config, &rx_channels[i]));
39 TEST_ESP_OK(gdma_connect(rx_channels[i], GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_M2M, 0)));
40 TEST_ESP_OK(gdma_register_rx_event_callbacks(rx_channels[i], &rx_cbs, NULL));
45 TEST_ESP_OK(gdma_disconnect(rx_channels[i]));
46 TEST_ESP_OK(gdma_del_channel(rx_channels[i]));
[all …]
Dtest_spi_bus_lock.c60 TEST_ESP_OK(spi_device_polling_transmit( handle, &t )); in spi_task1()
63 TEST_ESP_OK(spi_device_acquire_bus( handle, portMAX_DELAY )); in spi_task1()
65 TEST_ESP_OK(spi_device_polling_transmit( handle, &t )); in spi_task1()
85 TEST_ESP_OK(spi_device_acquire_bus( handle, portMAX_DELAY )); in spi_task2()
88 TEST_ESP_OK(spi_device_polling_transmit(handle, &t)); in spi_task2()
93 TEST_ESP_OK(spi_device_queue_trans(handle, &t, portMAX_DELAY)); in spi_task2()
96 TEST_ESP_OK(spi_device_get_trans_result(handle, &ret_t, portMAX_DELAY)); in spi_task2()
120 TEST_ESP_OK(spi_device_polling_transmit(handle, &t)); in spi_task3()
124 TEST_ESP_OK(spi_device_acquire_bus( handle, portMAX_DELAY )); in spi_task3()
126 TEST_ESP_OK(spi_device_polling_transmit(handle, &t)); in spi_task3()
[all …]
/hal_espressif-3.6.0/components/esp_event/test/
Dtest_event.c180 TEST_ESP_OK(esp_event_post_to(data->loop, data->base, data->id, NULL, 0, portMAX_DELAY)); in test_event_post_task()
198TEST_ESP_OK(esp_event_handler_register_with(data->loop, data->base, data->id, data->handles[i], NU… in test_event_simple_handler_registration_task()
200TEST_ESP_OK(esp_event_handler_unregister_with(data->loop, data->base, data->id, data->handles[i])); in test_event_simple_handler_registration_task()
221TEST_ESP_OK(esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_w_task()
246TEST_ESP_OK(esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_wo_task()
255TEST_ESP_OK(esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_wo_task()
269TEST_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 …]
/hal_espressif-3.6.0/components/nvs_flash/test/
Dtest_nvs.c38 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-3.6.0/components/esp_eth/test/
Dtest_emac.c108 TEST_ESP_OK(esp_eth_driver_install(&eth_config, &eth_handle));
112 TEST_ESP_OK(esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr));
118 TEST_ESP_OK(esp_eth_ioctl(eth_handle, ETH_CMD_G_PHY_ADDR, &phy_addr));
121 TEST_ESP_OK(esp_eth_driver_uninstall(eth_handle));
122 TEST_ESP_OK(phy->del(phy));
123 TEST_ESP_OK(mac->del(mac));
131 TEST_ESP_OK(esp_event_loop_create_default());
132TEST_ESP_OK(esp_event_handler_register(ETH_EVENT, ESP_EVENT_ANY_ID, &eth_event_handler, eth_event_…
139 TEST_ESP_OK(esp_eth_driver_install(&eth_config, &eth_handle));
141 TEST_ESP_OK(esp_eth_start(eth_handle));
[all …]
/hal_espressif-3.6.0/components/efuse/test/
Dtest_efuse.c38 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY, &mac, sizeof(mac) * 8)); in test_read_blob()
45 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY_CRC, &crc, 8)); in test_read_blob()
55 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY, &half_byte, 4)); in test_read_blob()
59 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY, &buff, sizeof(buff) * 8)); in test_read_blob()
81 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_MAC_FACTORY, &mac, 48)); in test_read_cnt()
83 TEST_ESP_OK(esp_efuse_read_field_cnt(ESP_EFUSE_MAC_FACTORY, &cnt)); in test_read_cnt()
112 TEST_ESP_OK(esp_efuse_write_field_blob(ESP_EFUSE_TEST1_LEN_8, &test1_len_8, 7)); in test_write_blob()
115 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_TEST1_LEN_8, &val_read1, 8)); in test_write_blob()
120 TEST_ESP_OK(esp_efuse_write_field_blob(ESP_EFUSE_TEST1_LEN_8, &test1_len_8_hi, 8)); in test_write_blob()
127 TEST_ESP_OK(esp_efuse_read_field_blob(ESP_EFUSE_TEST1_LEN_8, &val_read1, 16)); in test_write_blob()
[all …]
/hal_espressif-3.6.0/components/esp_lcd/test/
Dtest_i80_lcd_panel.c32 TEST_ESP_OK(esp_lcd_new_i80_bus(&bus_config, &i80_bus));
51 TEST_ESP_OK(esp_lcd_new_panel_io_i80(i80_bus, &io_config, &io_handles[0]));
54 TEST_ESP_OK(esp_lcd_new_panel_io_i80(i80_bus, &io_config, &io_handles[1]));
57 TEST_ESP_OK(esp_lcd_new_panel_io_i80(i80_bus, &io_config, &io_handles[2]));
60 TEST_ESP_OK(esp_lcd_new_panel_io_i80(i80_bus, &io_config, &io_handles[3]));
69 TEST_ESP_OK(esp_lcd_panel_io_del(io_handles[i]));
72 TEST_ESP_OK(esp_lcd_del_i80_bus(i80_bus));
94 TEST_ESP_OK(esp_lcd_new_i80_bus(&bus_config, &i80_bus));
113 TEST_ESP_OK(esp_lcd_new_panel_io_i80(i80_bus, &io_config, &io_handles[0]));
116 TEST_ESP_OK(esp_lcd_new_panel_io_i80(i80_bus, &io_config, &io_handles[1]));
[all …]
/hal_espressif-3.6.0/components/nvs_flash/test_nvs_host/
Dtest_nvs.cpp34 #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-3.6.0/components/esp_wifi/test/
Dtest_wifi_init.c30 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 …]
Dtest_wifi.c46 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-3.6.0/components/app_update/test/
Dtest_switch_ota.c54TEST_ESP_OK(esp_partition_mmap(curr_app, 0, curr_app->size, SPI_FLASH_MMAP_DATA, &partition_bin, &… in copy_app_partition()
55 TEST_ESP_OK(esp_ota_write(update_handle, (const void *)partition_bin, curr_app->size)); in copy_app_partition()
74TEST_ESP_OK(esp_partition_mmap(curr_app, offset, write_bytes, SPI_FLASH_MMAP_DATA, &partition_bin,… in copy_app_partition_with_offset()
75TEST_ESP_OK(esp_ota_write_with_offset(update_handle, (const void *)partition_bin, write_bytes, off… in copy_app_partition_with_offset()
94TEST_ESP_OK(esp_partition_mmap(src_partition, 0, src_partition->size, SPI_FLASH_MMAP_DATA, &partit… in copy_partition()
95 TEST_ESP_OK(esp_partition_erase_range(dst_partition, 0, dst_partition->size)); in copy_partition()
96TEST_ESP_OK(esp_partition_write(dst_partition, 0, (const void *)partition_bin, dst_partition->size… in copy_partition()
125 TEST_ESP_OK(esp_ota_begin(next_app_partition, OTA_SIZE_UNKNOWN, &update_handle)); in copy_current_app_to_next_part()
129 TEST_ESP_OK(esp_ota_end(update_handle)); in copy_current_app_to_next_part()
130 TEST_ESP_OK(esp_ota_set_boot_partition(next_app_partition)); in copy_current_app_to_next_part()
[all …]
/hal_espressif-3.6.0/components/esp_timer/test/
Dtest_esp_timer.c78 TEST_ESP_OK(esp_timer_create(&args, &handles[i]));
79 TEST_ESP_OK(esp_timer_start_once(handles[i], timeouts[i] * 100));
84 TEST_ESP_OK(esp_timer_dump(stream));
86 TEST_ESP_OK(esp_timer_stop(handles[i]));
87 TEST_ESP_OK(esp_timer_delete(handles[i]));
171 TEST_ESP_OK(esp_timer_create(&args, &timer1));
182 TEST_ESP_OK(esp_timer_start_once(timer1, delays_ms[i] * 1000));
194 TEST_ESP_OK( esp_timer_dump(stdout) );
222 TEST_ESP_OK(esp_timer_stop(p_args->timer)); in test_periodic_correct_delays_timer_func()
237 TEST_ESP_OK(esp_timer_create(&create_args, &timer1));
[all …]
/hal_espressif-3.6.0/components/touch_element/test/
Dtest_touch_button.c71 TEST_ESP_OK(touch_element_install(&global_config));
80 TEST_ESP_OK(touch_element_install(&global_config));
89 TEST_ESP_OK(touch_element_install(&global_config));
178 TEST_ESP_OK(touch_button_install(&global_config)); in test_button_disp_event()
184 TEST_ESP_OK(touch_button_create(&button_config, &button_handle[i])); in test_button_disp_event()
185 TEST_ESP_OK(touch_button_subscribe_event(button_handle[i], in test_button_disp_event()
188 TEST_ESP_OK(touch_button_set_longpress(button_handle[i], 300)); in test_button_disp_event()
189 TEST_ESP_OK(touch_button_set_dispatch_method(button_handle[i], TOUCH_ELEM_DISP_EVENT)); in test_button_disp_event()
191 TEST_ESP_OK(touch_element_start()); in test_button_disp_event()
206 TEST_ESP_OK(touch_element_stop()); in test_button_disp_event()
[all …]
Dtest_touch_matrix.c64 TEST_ESP_OK(touch_element_install(&global_config));
73 TEST_ESP_OK(touch_element_install(&global_config));
82 TEST_ESP_OK(touch_element_install(&global_config));
195 TEST_ESP_OK(touch_matrix_install(&global_config)); in test_matrix_disp_event()
204 TEST_ESP_OK(touch_matrix_create(&matrix_config, &matrix_handle)); in test_matrix_disp_event()
205TEST_ESP_OK(touch_matrix_subscribe_event(matrix_handle, TOUCH_ELEM_EVENT_ON_PRESS | TOUCH_ELEM_EVE… in test_matrix_disp_event()
206 TEST_ESP_OK(touch_matrix_set_longpress(matrix_handle, 300)); in test_matrix_disp_event()
207 TEST_ESP_OK(touch_matrix_set_dispatch_method(matrix_handle, TOUCH_ELEM_DISP_EVENT)); in test_matrix_disp_event()
208 TEST_ESP_OK(touch_element_start()); in test_matrix_disp_event()
223 TEST_ESP_OK(touch_element_stop()); in test_matrix_disp_event()
[all …]
/hal_espressif-3.6.0/components/sdmmc/test/
Dtest_sd.c118 TEST_ESP_OK(sdmmc_host_init()); in probe_sd()
119 TEST_ESP_OK(sdmmc_host_init_slot(slot, &slot_config)); in probe_sd()
122 TEST_ESP_OK(sdmmc_card_init(&config, card)); in probe_sd()
125 TEST_ESP_OK(sdmmc_read_sectors(card, buffer, 0, 1)); in probe_sd()
127 TEST_ESP_OK(sdmmc_host_deinit()); in probe_sd()
208 TEST_ESP_OK(err); in test_sdspi_init_bus()
214 TEST_ESP_OK(err); in test_sdspi_deinit_bus()
225 TEST_ESP_OK(sdmmc_card_init(&config, card)); in probe_core()
238 TEST_ESP_OK(sdspi_host_init()); in probe_spi()
239 TEST_ESP_OK(sdspi_host_init_device(&dev_config, &handle)); in probe_spi()
[all …]

1234