/** * \brief Manage the Ethernet packets, if any received process them. * After processing any packets, manage the lwIP timers. * * \return Returns true if data has been processed. */ void ethernet_task(void) { /* Run polling tasks */ while (ethernetif_input(&gs_net_if)); /* Run periodic tasks */ ethernet_timers_update(); }
void Network::Interrupt() { if (state != NetworkInactive && LockLWIP()) { ethernet_timers_update(); UnlockLWIP(); } }
/**0 * \brief Manage the Ethernet packets, if any received process them. * After processing any packets, manage the lwIP timers. * * \return Returns true if data has been processed. */ bool ethernet_read(void) { /* Run polling tasks */ bool data_read = ethernetif_input(&gs_net_if); /* Run periodic tasks */ ethernet_timers_update(); return data_read; }