mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
esp32: use binary semaphore instead of mutex in dport tests
This commit is contained in:
@@ -66,8 +66,7 @@ void run_tasks(const char *task1_description, void (* task1_func)(void *), const
|
|||||||
|
|
||||||
for (i=0; i<2; i++) {
|
for (i=0; i<2; i++) {
|
||||||
if((task1_func != NULL && i == 0) || (task2_func != NULL && i == 1)){
|
if((task1_func != NULL && i == 0) || (task2_func != NULL && i == 1)){
|
||||||
exit_sema[i] = xSemaphoreCreateMutex();
|
exit_sema[i] = xSemaphoreCreateBinary();
|
||||||
xSemaphoreTake(exit_sema[i], portMAX_DELAY);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user