arch/arm/src/sam34/sam_twi.c
/*******************************************************************************
 * Name: twi_wakeup
 *
 * Description:
 *   A terminal event has occurred.  Wake-up the waiting thread
 *
 *******************************************************************************/
twi_wakeup
Description:
A terminal event has occurred.  Wake-up the waiting thread
twi_wakeup Description : A terminal event has occurred . Wake - up the waiting thread
static void twi_wakeup(struct twi_dev_s *priv, int result)
{
  wd_cancel(priv->timeout);
  twi_putrel(priv, SAM_TWI_IDR_OFFSET, TWI_INT_ALL);
  priv->result = result;
  twi_givesem(&priv->waitsem);
}
static void twi_wakeup ( struct twi_dev_s * priv , int result ) { wd_cancel ( priv -> timeout ) ; twi_putrel ( priv , SAM_TWI_IDR_OFFSET , TWI_INT_ALL ) ; priv -> result = result ; twi_givesem ( & priv -> waitsem ) ; }
Name: twi_wakeup
 Description:
   A terminal event has occurred.
Name : twi_wakeup Description : A terminal event has occurred .
/* Cancel any pending timeout */ /* Disable any further TWI interrupts */ /* Wake up the waiting thread with the result of the transfer */