Lines Matching refs:sema
650 static xSemaphoreHandle sema; variable
656 xSemaphoreGive(sema); in task1()
666 xSemaphoreTake(sema, portMAX_DELAY); in task2()
674 xSemaphoreGive(sema); in task2()
681 xSemaphoreTake(sema, portMAX_DELAY); in task3()
691 xSemaphoreGive(sema); in task3()
701 sema = xSemaphoreCreateBinary();
707 xSemaphoreTake(sema, portMAX_DELAY);
716 xSemaphoreTake(sema, portMAX_DELAY);
719 vSemaphoreDelete(sema);
794 SemaphoreHandle_t sema = (SemaphoreHandle_t) arg; in efuse_burn_task() local
802 xSemaphoreGive(sema); in efuse_burn_task()
809 SemaphoreHandle_t sema = (SemaphoreHandle_t) arg; in efuse_read_task() local
815 xSemaphoreGive(sema); in efuse_read_task()
824 xSemaphoreHandle sema[2]; variable
825 sema[0] = xSemaphoreCreateBinary();
826 sema[1] = xSemaphoreCreateBinary();
831 xTaskCreatePinnedToCore(efuse_burn_task, "efuse_burn_task", 3072, sema[0], 2, NULL, 0);
832 … xTaskCreatePinnedToCore(efuse_read_task, "efuse_read_task", 3072, sema[1], 2, &read_task_hdl, 0);
842 TEST_ASSERT_EQUAL(pdPASS, xSemaphoreTake(sema[0], 1000 / portTICK_PERIOD_MS));
843 TEST_ASSERT_EQUAL(pdPASS, xSemaphoreTake(sema[1], 1000 / portTICK_PERIOD_MS));
845 vSemaphoreDelete(sema[0]);
846 vSemaphoreDelete(sema[1]);