arch/arm/src/lpc17xx/lpc17_ethernet.c
/****************************************************************************
 * Function: lpc17_txtimeout_expiry
 *
 * Description:
 *   Our TX watchdog timed out.  Called from the timer interrupt handler.
 *   The last TX never completed.  Reset the hardware and start again.
 *
 * Parameters:
 *   argc - The number of available arguments
 *   arg  - The first argument
 *
 * Returned Value:
 *   None
 *
 * Assumptions:
 *   Global interrupts are disabled by the watchdog logic.
 *
 ****************************************************************************/
lpc17_txtimeout_expiry
Description:
Our TX watchdog timed out.  Called from the timer interrupt handler.
The last TX never completed.  Reset the hardware and start again.

The number of available arguments
arg  - The first argument

Returned Value:
None

Global interrupts are disabled by the watchdog logic.
lpc17_txtimeout_expiry Description : Our TX watchdog timed out . Called from the timer interrupt handler . The last TX never completed . Reset the hardware and start again . The number of available arguments arg - The first argument Returned Value : None Global interrupts are disabled by the watchdog logic .
static void lpc17_txtimeout_expiry(int argc, uint32_t arg, ...)
{
  struct lpc17_driver_s *priv = (struct lpc17_driver_s *)arg;
  priv->lp_inten &= ~ETH_TXINTS;
  lpc17_putreg(priv->lp_inten, LPC17_ETH_INTEN);
#ifdef CONFIG_NET_NOINTS
  if (work_available(&priv->lp_txwork))
    {
      work_queue(HPWORK, &priv->lp_txwork, lpc17_txtimeout_work, priv, 0);
    }
#else
  lpc17_txtimeout_process(priv);
#endif
}
static void lpc17_txtimeout_expiry ( int argc , uint32_t arg , ... ) { struct lpc17_driver_s * priv = ( struct lpc17_driver_s * ) arg ; priv -> lp_inten &= ~ ETH_TXINTS ; lpc17_putreg ( priv -> lp_inten , LPC17_ETH_INTEN ) ; #ifdef CONFIG_NET_NOINTS if ( work_available ( & priv -> lp_txwork ) ) { work_queue ( HPWORK , & priv -> lp_txwork , lpc17_txtimeout_work , priv , 0 ) ; } #else lpc17_txtimeout_process ( priv ) ; #endif }
Function: lpc17_txtimeout_expiry
 Description:
   Our TX watchdog timed out.
Function : lpc17_txtimeout_expiry Description : Our TX watchdog timed out .
/* Disable further Tx interrupts.  Tx interrupts may be re-enabled again
   * depending upon the actions of lpc17_poll_process()
   */ /* Is the single TX work structure available?  If not, then there is
   * pending TX work to be done this must be a false alarm TX timeout.
   */ /* Schedule to perform the interrupt processing on the worker thread. */ /* Process the timeout now */