From 55cbc213f37bd63931bdaf485a3558a0f093cc67 Mon Sep 17 00:00:00 2001 From: Felipe Neves Date: Thu, 24 Oct 2019 17:36:37 -0300 Subject: [PATCH] components/freertos: create the test task with highest priority to ensure peer-to-peer ISR to task sync --- components/freertos/test/test_isr_latency.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/freertos/test/test_isr_latency.c b/components/freertos/test/test_isr_latency.c index 5999b72f3f..a4b344f11d 100644 --- a/components/freertos/test/test_isr_latency.c +++ b/components/freertos/test/test_isr_latency.c @@ -66,7 +66,7 @@ TEST_CASE("isr latency test", "[freertos] [ignore]") TEST_ASSERT(sync != NULL); end_sema = xSemaphoreCreateBinary(); TEST_ASSERT(end_sema != NULL); - xTaskCreatePinnedToCore(test_task, "tst" , 4096, NULL, 3, NULL, 0); + xTaskCreatePinnedToCore(test_task, "tst" , 4096, NULL, configMAX_PRIORITIES - 1, NULL, 0); BaseType_t result = xSemaphoreTake(end_sema, portMAX_DELAY); TEST_ASSERT_EQUAL_HEX32(pdTRUE, result); TEST_PERFORMANCE_LESS_THAN(ISR_ENTER_CYCLES, "%d cycles" ,delta_enter_cycles);