sdio: test_sdio add unity sync signals

This commit is contained in:
wanlei 2023-04-17 10:32:59 +08:00
parent c34ea9cef6
commit ad1ba78129

View File

@ -126,6 +126,8 @@ static void deinit_essl(essl_handle_t handle, const sdio_test_config_t *conf);
static void test_framework_master(test_func_t test_func, const sdio_test_config_t* config)
{
unity_send_signal("Master ready");
unity_wait_for_signal("Slave ready");
ESP_LOGI(MASTER_TAG, "### Testing %s... ####", config->test_name);
essl_handle_t handle;
esp_err_t err;
@ -552,6 +554,7 @@ static void wait_for_finish(slave_context_t *ctx)
static void test_framework_slave(test_func_slave_t test_func, const sdio_test_config_t* config)
{
unity_wait_for_signal("Master ready");
slave_context.s_finished = false;
esp_err_t err;
sdio_slave_config_t slave_config = {
@ -566,7 +569,7 @@ static void test_framework_slave(test_func_slave_t test_func, const sdio_test_co
err = sdio_slave_start();
TEST_ESP_OK(err);
ESP_LOGI(SLAVE_TAG, "slave ready");
unity_send_signal("Slave ready");
test_func(&slave_context, config);