diff --git a/components/freertos/test_apps/freertos/main/test_freertos_main.c b/components/freertos/test_apps/freertos/main/test_freertos_main.c index 58375e387e..3c26d2b503 100644 --- a/components/freertos/test_apps/freertos/main/test_freertos_main.c +++ b/components/freertos/test_apps/freertos/main/test_freertos_main.c @@ -43,8 +43,8 @@ void tearDown(void) esp_task_wdt_delete(NULL); #endif - // Add a short delay of 10ms to allow the idle task to free an remaining memory - vTaskDelay(pdMS_TO_TICKS(10)); + // Add a short delay of 10 ticks to allow the idle task to free remaining memory. + vTaskDelay(10); size_t after_free_8bit = heap_caps_get_free_size(MALLOC_CAP_8BIT); size_t after_free_32bit = heap_caps_get_free_size(MALLOC_CAP_32BIT); check_leak(before_free_8bit, after_free_8bit, "8BIT"); diff --git a/components/freertos/test_apps/freertos/misc/test_idf_additions.c b/components/freertos/test_apps/freertos/misc/test_idf_additions.c index d9fc67adb7..2b3c77a1db 100644 --- a/components/freertos/test_apps/freertos/misc/test_idf_additions.c +++ b/components/freertos/test_apps/freertos/misc/test_idf_additions.c @@ -357,7 +357,7 @@ TEST_CASE("IDF additions: IDF tick hooks during scheduler suspension", "[freerto /* Cleanup */ vTaskSuspend(suspend_task_handle[x]); - vTaskDelay(pdMS_TO_TICKS(10)); + vTaskDelay(10); vTaskDelete(suspend_task_handle[x]); } } diff --git a/components/freertos/test_apps/freertos/port/test_tlsp_del_cb.c b/components/freertos/test_apps/freertos/port/test_tlsp_del_cb.c index 37a7c1cbdf..8a09bbd2db 100644 --- a/components/freertos/test_apps/freertos/port/test_tlsp_del_cb.c +++ b/components/freertos/test_apps/freertos/port/test_tlsp_del_cb.c @@ -67,7 +67,7 @@ TEST_CASE("Test TLSP deletion callbacks", "[freertos]") TEST_ASSERT_EQUAL(pdPASS, xTaskCreatePinnedToCore(tlsp_task, "tlsp_tsk", configMINIMAL_STACK_SIZE * 2, (void *)&tlsps[i], UNITY_FREERTOS_PRIORITY - 1, &tasks[i], i)); } // Significant delay to let tasks run and delete themselves - vTaskDelay(pdMS_TO_TICKS(100)); + vTaskDelay(100); // Check the values of the TLSPs to see if the del cb have ran for (int i = 0; i < CONFIG_FREERTOS_NUMBER_OF_CORES; i++) { diff --git a/components/freertos/test_apps/freertos/port/test_xtensa_loadstore_handler.c b/components/freertos/test_apps/freertos/port/test_xtensa_loadstore_handler.c index 704ce3dab2..ba1d0393d2 100644 --- a/components/freertos/test_apps/freertos/port/test_xtensa_loadstore_handler.c +++ b/components/freertos/test_apps/freertos/port/test_xtensa_loadstore_handler.c @@ -216,7 +216,7 @@ TEST_CASE("LoadStore: 8/16-bit field access in IRAM from ISRs when pending inter esp_rom_printf("test passed\n"); heap_caps_free((void *)s_iram); - vTaskDelay(pdMS_TO_TICKS(100)); // Wait for memory to be freed, to avoid affecting other tests. + vTaskDelay(100); // Wait in ticks for memory to be freed, to avoid affecting other tests. } TEST_CASE("LoadStore: zero-overhead loop continues after IRAM 8-bit store", "[freertos]") @@ -273,6 +273,6 @@ TEST_CASE("LoadStore: zero-overhead loop continues after IRAM 8-bit store", "[fr heap_caps_free(dst); heap_caps_free(src); - vTaskDelay(pdMS_TO_TICKS(100)); // Wait for free to complete before running other tests. + vTaskDelay(100); // Wait for free to complete before running other tests. } #endif // CONFIG_IDF_TARGET_ARCH_XTENSA && CONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY