AnsweredAssumed Answered

K82 : I2C_RTOS_Transfer() timeout

Question asked by Eugene Hiihtaja on Dec 10, 2018
Latest reply on Dec 13, 2018 by Eugene Hiihtaja

Hello !


I'm using I2C master API for FreeRTOS and would like to estimate max timeout in case if I2C transaction can't be completed.


In API I2C_RTOS_Transfer() I can see infinite waiting of semaphore:

/* Wait for transfer to finish */
xSemaphoreTake(handle->semaphore, portMAX_DELAY);


What timeout mechanisms is exists inside I2C hardware what can garantie if I2C interrupt in controller is happens in any case for unblock waiting if semaphore in reasonable time ?