工具/软件:
while (1)
{
if (Condition-1) /*Code-logic in this if condition */
{
if (xSemaphoreTake(keepAlivePulseMutex, portMAX_DELAY) == pdTRUE)
{
DebugP_log("EIC-Log ClockP_usleep(): KeepAlivePulseTaskHandler() Case-2 onTimeUs: %d && keepAlivePeriodMs: %d\r\n", onTimeUs, keepAlivePeriodMs);
setGpioValue(MCU_SOC_ILLUM_STRB_PIN, GPIO_PIN_HIGH);
ClockP_usleep(13); /* ON time in µs */
setGpioValue(MCU_SOC_ILLUM_STRB_PIN, GPIO_PIN_LOW);
xSemaphoreGive(keepAlivePulseMutex);
}
ClockP_usleep(10000); /* Configurable pulse period */
}
}

