embedded/projects/osp-steval-mki109v2/sources/app/i2c_slavecomm_t.c
static void I2C_Slave_Wait_Completion( void )
{
    OS_RESULT result;
    static uint32_t dessimate = 0;

    result = os_evt_wait_or( I2C_SLAVE_XFER_DONE, MSEC_TO_TICS(500));
    if (result == OS_R_TMO)
    {
        dessimate++;
        if ((dessimate & 0x1) == 0)
        {
            SensorHubIntLow(); //Deassert Interrupt
            //D1_printf("\t### WARNING - Timedout on I2C Slave completion (%d) ###\r\n", dessimate);
            LED_Toggle(LED_YELLOW);
        }
    }
}
/****************************************************************************************************
 * @fn      I2C_Slave_Wait_Completion
 *          This function allows application to pend on completion for slave transfer
 *
 ***************************************************************************************************/
@fn      I2C_Slave_Wait_Completion
This function allows application to pend on completion for slave transfer
@fn I2C_Slave_Wait_Completion This function allows application to pend on completion for slave transfer
static void I2C_Slave_Wait_Completion( void )
{
    OS_RESULT result;
    static uint32_t dessimate = 0;
    result = os_evt_wait_or( I2C_SLAVE_XFER_DONE, MSEC_TO_TICS(500));
    if (result == OS_R_TMO)
    {
        dessimate++;
        if ((dessimate & 0x1) == 0)
        {
            SensorHubIntLow(); 
            LED_Toggle(LED_YELLOW);
        }
    }
}
static void I2C_Slave_Wait_Completion ( void ) { OS_RESULT result ; static uint32_t dessimate = 0 ; result = os_evt_wait_or ( I2C_SLAVE_XFER_DONE , MSEC_TO_TICS ( 500 ) ) ; if ( result == OS_R_TMO ) { dessimate ++ ; if ( ( dessimate & 0x1 ) == 0 ) { SensorHubIntLow ( ) ; LED_Toggle ( LED_YELLOW ) ; } } }
@fn      I2C_Slave_Wait_Completion
          This function allows application to pend on completion for slave transfer
@fn I2C_Slave_Wait_Completion This function allows application to pend on completion for slave transfer
//Deassert Interrupt //D1_printf("\t### WARNING - Timedout on I2C Slave completion (%d) ###\r\n", dessimate);