Home
last modified time | relevance | path

Searched refs:xShutdownSemaphore (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.4.0/components/freemodbus/tcp_slave/port/
Dport_tcp_slave.c72 static SemaphoreHandle_t xShutdownSemaphore = NULL; variable
467 if (xListenSock == -1 && xShutdownSemaphore) { in vMBTCPPortServerTask()
468 xSemaphoreGive(xShutdownSemaphore); in vMBTCPPortServerTask()
638 xShutdownSemaphore = xSemaphoreCreateBinary(); in vMBTCPPortClose()
640 …if (xShutdownSemaphore == NULL || // if no semaphore (alloc issues) or couldn't acquire it, just d… in vMBTCPPortClose()
641 …xSemaphoreTake(xShutdownSemaphore, 2*pdMS_TO_TICKS(CONFIG_FMB_MASTER_TIMEOUT_MS_RESPOND)) != pdTRU… in vMBTCPPortClose()
645 if (xShutdownSemaphore) { in vMBTCPPortClose()
646 vSemaphoreDelete(xShutdownSemaphore); in vMBTCPPortClose()
647 xShutdownSemaphore = NULL; in vMBTCPPortClose()
/hal_espressif-3.4.0/components/freemodbus/tcp_master/port/
Dport_tcp_master.c82 static SemaphoreHandle_t xShutdownSemaphore = NULL; variable
221 if (xShutdownSemaphore) { in xMBTCPPortMasterCheckShutdown()
222 xSemaphoreGive(xShutdownSemaphore); in xMBTCPPortMasterCheckShutdown()
898 xShutdownSemaphore = xSemaphoreCreateBinary(); in vMBMasterTCPPortDisable()
900 …if (xShutdownSemaphore == NULL || xSemaphoreTake(xShutdownSemaphore, pdMS_TO_TICKS(MB_EVENT_WAIT_T… in vMBMasterTCPPortDisable()
904 if (xShutdownSemaphore) { in vMBMasterTCPPortDisable()
905 vSemaphoreDelete(xShutdownSemaphore); in vMBMasterTCPPortDisable()
906 xShutdownSemaphore = NULL; in vMBMasterTCPPortDisable()