esp32: use binary semaphore instead of mutex in dport tests

This commit is contained in:
Ivan Grokhotkov
2019-01-24 11:08:32 +08:00
committed by bot
parent 13523c95b4
commit d539183b40

View File

@@ -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();
}
}