Merge https://github.com/SuperHouse/esp-open-rtos into feature/testing
This commit is contained in:
commit
a6ccf90c07
91 changed files with 1494 additions and 242 deletions
|
|
@ -46,7 +46,7 @@ static void a_01_scheduler_priorities()
|
|||
vTaskPrioritySet(xTaskGetCurrentTaskHandle(), tskIDLE_PRIORITY+4);
|
||||
|
||||
bool lower = false, higher = false;
|
||||
xTaskHandle task_lower, task_higher;
|
||||
TaskHandle_t task_lower, task_higher;
|
||||
|
||||
xTaskCreate(set_variable, "high_prio", 128, (void *)&higher, tskIDLE_PRIORITY+1, &task_higher);
|
||||
xTaskCreate(set_variable, "low_prio", 128, (void *)&lower, tskIDLE_PRIORITY, &task_lower);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ static void server_task(void *pvParameters)
|
|||
buf[pb->len] = 0;
|
||||
break;
|
||||
}
|
||||
vTaskDelay(100 / portTICK_RATE_MS);
|
||||
vTaskDelay(100 / portTICK_PERIOD_MS);
|
||||
}
|
||||
TEST_ASSERT_TRUE_MESSAGE(pb->len > 0, "No data received");
|
||||
printf("Device A: received data: %s\n", buf);
|
||||
|
|
@ -122,7 +122,7 @@ static void connect_task(void *pvParameters)
|
|||
|
||||
// wait for wifi connection
|
||||
while (sdk_wifi_station_get_connect_status() != STATION_GOT_IP) {
|
||||
vTaskDelay(1000 / portTICK_RATE_MS);
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
printf("Waiting for connection to AP\n");
|
||||
}
|
||||
|
||||
|
|
@ -148,7 +148,7 @@ static void connect_task(void *pvParameters)
|
|||
if (r > 0) {
|
||||
break;
|
||||
}
|
||||
vTaskDelay(100 / portTICK_RATE_MS);
|
||||
vTaskDelay(100 / portTICK_PERIOD_MS);
|
||||
}
|
||||
TEST_ASSERT_TRUE_MESSAGE(r > 0, "No data received");
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ static void test_task(void *pvParameters)
|
|||
timers[1].start_time = get_current_time();
|
||||
sdk_ets_timer_arm(&timers[1].handle, 50, true); // repeating timer
|
||||
|
||||
vTaskDelay(500 / portTICK_RATE_MS);
|
||||
vTaskDelay(500 / portTICK_PERIOD_MS);
|
||||
|
||||
TEST_ASSERT_EQUAL_INT_MESSAGE(1, timers[0].fire_count,
|
||||
"Timer hasn't fired");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue