Ejemplo n.º 1
0
static inline void skel_interrupt_process(FAR struct skel_driver_s *priv)
{
  /* Get and clear interrupt status bits */

  /* Handle interrupts according to status bit settings */

  /* Check if we received an incoming packet, if so, call skel_receive() */

  skel_receive(priv);

  /* Check if a packet transmission just completed.  If so, call skel_txdone.
   * This may disable further Tx interrupts if there are no pending
   * transmissions.
   */

  skel_txdone(priv);
}
Ejemplo n.º 2
0
static int skel_interrupt(int irq, FAR void *context)
{
  register FAR struct skel_driver_s *skel = &g_skel[0];

  /* Get and clear interrupt status bits */

  /* Handle interrupts according to status bit settings */

  /* Check if we received an incoming packet, if so, call skel_receive() */

  skel_receive(skel);

  /* Check if a packet transmission just completed.  If so, call skel_txdone.
   * This may disable further Tx interrupts if there are no pending
   * tansmissions.
   */

  skel_txdone(skel);

  return OK;
}