From d539183b40ba1add2b2dd2ff4622b0ef3fd6d84b Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 24 Jan 2019 11:08:32 +0800 Subject: [PATCH] esp32: use binary semaphore instead of mutex in dport tests --- components/esp32/test/test_dport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/esp32/test/test_dport.c b/components/esp32/test/test_dport.c index 4520a70aaa..418cd4202d 100644 --- a/components/esp32/test/test_dport.c +++ b/components/esp32/test/test_dport.c @@ -66,8 +66,7 @@ void run_tasks(const char *task1_description, void (* task1_func)(void *), const for (i=0; i<2; i++) { if((task1_func != NULL && i == 0) || (task2_func != NULL && i == 1)){ - exit_sema[i] = xSemaphoreCreateMutex(); - xSemaphoreTake(exit_sema[i], portMAX_DELAY); + exit_sema[i] = xSemaphoreCreateBinary(); } }