Home
last modified time | relevance | path

Searched refs:done_sem (Results 1 – 12 of 12) sorted by relevance

/hal_espressif-3.6.0/components/freertos/test/
Dtest_freertos_eventgroups.c24 static SemaphoreHandle_t done_sem; variable
42 xSemaphoreGive(done_sem); in task_event_group_call_response()
49 done_sem = xSemaphoreCreateCounting(NUM_TASKS, 0);
75 TEST_ASSERT( xSemaphoreTake(done_sem, 100/portTICK_PERIOD_MS) );
78 vSemaphoreDelete(done_sem);
100 xSemaphoreGive(done_sem); in task_test_sync()
107 done_sem = xSemaphoreCreateCounting(NUM_TASKS, 0);
120 TEST_ASSERT( xSemaphoreTake(done_sem, 100/portTICK_PERIOD_MS) );
123 vSemaphoreDelete(done_sem);
156 xSemaphoreGiveFromISR(done_sem, &task_woken); in event_group_isr()
[all …]
Dtest_freertos_debug_functions.c23 static SemaphoreHandle_t done_sem = NULL; variable
42 xSemaphoreGive(done_sem); //Signal that vQueueAddToRegistry() has completed in test_queue_registry_task()
50 xSemaphoreGive(done_sem); //Signal done in test_queue_registry_task()
58 done_sem = xSemaphoreCreateCounting(portNUM_PROCESSORS, 0);
70 xSemaphoreTake(done_sem, portMAX_DELAY); //Wait for tasks to complete vQueueAddToRegistry
83 … xSemaphoreTake(done_sem, portMAX_DELAY); //Wait for tasks to complete vQueueUnregisterQueue
100 vSemaphoreDelete(done_sem);
101 done_sem = NULL;
Dtest_spinlocks.c77 static xSemaphoreHandle done_sem; variable
86 xSemaphoreGive(done_sem); in task_shared_value_increment()
92 done_sem = xSemaphoreCreateCounting(2, 0);
102 if(!xSemaphoreTake(done_sem, 10000/portTICK_PERIOD_MS)) {
108 vSemaphoreDelete(done_sem);
116 done_sem = xSemaphoreCreateCounting(TOTAL_TASKS, 0);
132 if(!xSemaphoreTake(done_sem, 10000/portTICK_PERIOD_MS)) {
138 vSemaphoreDelete(done_sem);
Dtest_freertos_get_state.c13 static SemaphoreHandle_t done_sem; variable
26 xSemaphoreGive(done_sem); in test_task_get_state()
48 done_sem = xQueueCreateCountingSemaphore(portNUM_PROCESSORS, 0);
59 xSemaphoreTake(done_sem, portMAX_DELAY);
66 vSemaphoreDelete(done_sem);
/hal_espressif-3.6.0/components/mbedtls/test/
Dtest_mbedtls_sha.c92 static xSemaphoreHandle done_sem; variable
108 xSemaphoreGive(done_sem); in tskRunSHA1Test()
127 xSemaphoreGive(done_sem); in tskRunSHA256Test()
135 done_sem = xSemaphoreCreateCounting(4, 0);
142 if (!xSemaphoreTake(done_sem, 10000 / portTICK_PERIOD_MS)) {
146 vSemaphoreDelete(done_sem);
174 xSemaphoreGive(done_sem); in tskRunSHASelftests()
180 done_sem = xSemaphoreCreateCounting(2, 0);
187 if (!xSemaphoreTake(done_sem, TIMEOUT_MS / portTICK_PERIOD_MS)) {
191 vSemaphoreDelete(done_sem);
[all …]
Dtest_aes_sha_parallel.c14 static xSemaphoreHandle done_sem; variable
39 xSemaphoreGive(done_sem); in tskRunSHA256Test()
104 xSemaphoreGive(done_sem); in tskRunAES256Test()
115 done_sem = xSemaphoreCreateCounting(2, 0);
121 if (!xSemaphoreTake(done_sem, 10000 / portTICK_PERIOD_MS)) {
126 vSemaphoreDelete(done_sem);
Dtest_aes.c1480 static xSemaphoreHandle done_sem; variable
1485 xSemaphoreGive(done_sem); in aes_ctr_stream_test_task()
1491 done_sem = xSemaphoreCreateBinary();
1499 TEST_ASSERT_TRUE(xSemaphoreTake(done_sem, 10000 / portTICK_PERIOD_MS));
1500 vSemaphoreDelete(done_sem);
/hal_espressif-3.6.0/examples/peripherals/twai/twai_self_test/main/
Dtwai_self_test_example_main.c54 static SemaphoreHandle_t done_sem; variable
107 xSemaphoreGive(done_sem); in twai_control_task()
117 done_sem = xSemaphoreCreateBinary(); in app_main()
130 xSemaphoreTake(done_sem, portMAX_DELAY); in app_main()
140 vQueueDelete(done_sem); in app_main()
/hal_espressif-3.6.0/examples/peripherals/twai/twai_network/twai_network_master/main/
Dtwai_network_example_master_main.c80 static SemaphoreHandle_t done_sem; variable
204 xSemaphoreGive(done_sem); in twai_control_task()
215 done_sem = xSemaphoreCreateBinary(); in app_main()
225 xSemaphoreTake(done_sem, portMAX_DELAY); //Wait for completion in app_main()
236 vSemaphoreDelete(done_sem); in app_main()
/hal_espressif-3.6.0/examples/peripherals/twai/twai_network/twai_network_slave/main/
Dtwai_network_example_slave_main.c81 static SemaphoreHandle_t done_sem; variable
224 xSemaphoreGive(done_sem); in twai_control_task()
242 done_sem = xSemaphoreCreateBinary();; in app_main()
252 xSemaphoreTake(done_sem, portMAX_DELAY); //Wait for tasks to complete in app_main()
261 vSemaphoreDelete(done_sem); in app_main()
/hal_espressif-3.6.0/components/esp_lcd/src/
Desp_lcd_rgb_panel.c82 …SemaphoreHandle_t done_sem; // Binary semaphore, indicating if the new frame has been flushed … member
144 rgb_panel->done_sem = xSemaphoreCreateBinary(); in esp_lcd_new_rgb_panel()
145 ESP_GOTO_ON_FALSE(rgb_panel->done_sem, ESP_ERR_NO_MEM, err, TAG, "create done sem failed"); in esp_lcd_new_rgb_panel()
146 xSemaphoreGive(rgb_panel->done_sem); // initialize the semaphore count to 1 in esp_lcd_new_rgb_panel()
199 if (rgb_panel->done_sem) { in esp_lcd_new_rgb_panel()
200 vSemaphoreDelete(rgb_panel->done_sem); in esp_lcd_new_rgb_panel()
221 xSemaphoreTake(rgb_panel->done_sem, portMAX_DELAY); // wait for last flush done in rgb_panel_del()
228 vSemaphoreDelete(rgb_panel->done_sem); in rgb_panel_del()
306 xSemaphoreTake(rgb_panel->done_sem, portMAX_DELAY); // wait for last transaction done in rgb_panel_draw_bitmap()
514 xSemaphoreGiveFromISR(panel->done_sem, &high_task_woken); in lcd_default_isr_handler()
/hal_espressif-3.6.0/components/esp_ringbuf/test/
Dtest_ringbuf.c34 static SemaphoreHandle_t done_sem; variable
662 xSemaphoreGive(done_sem); in queue_set_receiving_task()
669 done_sem = xSemaphoreCreateBinary();
688 xSemaphoreTake(done_sem, portMAX_DELAY);
689 vSemaphoreDelete(done_sem);
747 xSemaphoreGiveFromISR(done_sem, &task_woken); in ringbuffer_isr()
788 done_sem = xSemaphoreCreateBinary();
795 xSemaphoreTake(done_sem, portMAX_DELAY);
799 vSemaphoreDelete(done_sem);