Networking: Remove the HSEC argument from devif_timer.
This commit is contained in:
parent
578402f8b5
commit
1166e311b0
@ -112,12 +112,11 @@
|
||||
/* Timing values ************************************************************/
|
||||
/* TX poll deley = 1 seconds. CLK_TCK=number of clock ticks per second */
|
||||
|
||||
#define C5471_WDDELAY (1*CLK_TCK)
|
||||
#define C5471_POLLHSEC (1*2)
|
||||
#define C5471_WDDELAY (1*CLK_TCK)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
#define C5471_TXTIMEOUT (60*CLK_TCK)
|
||||
#define C5471_TXTIMEOUT (60*CLK_TCK)
|
||||
|
||||
/* Ethernet GPIO bit settings ***********************************************/
|
||||
|
||||
@ -1650,7 +1649,7 @@ static void c5471_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* If so, update TCP timing states and poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_timer(&c5471->c_dev, c5471_txpoll, C5471_POLLHSEC);
|
||||
(void)devif_timer(&c5471->c_dev, c5471_txpoll);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -101,7 +101,6 @@
|
||||
/* TX poll delay = 1 seconds. CLK_TCK is the number of clock ticks per second */
|
||||
|
||||
#define KINETIS_WDDELAY (1*CLK_TCK)
|
||||
#define KINETIS_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -887,7 +886,7 @@ static void kinetis_polltimer(int argc, uint32_t arg, ...)
|
||||
* we will missing TCP time state updates?
|
||||
*/
|
||||
|
||||
(void)devif_timer(&priv->dev, kinetis_txpoll, KINETIS_POLLHSEC);
|
||||
(void)devif_timer(&priv->dev, kinetis_txpoll);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again in any case */
|
||||
|
@ -152,7 +152,6 @@
|
||||
/* TX poll deley = 1 seconds. CLK_TCK is the number of clock ticks per second */
|
||||
|
||||
#define LPC17_WDDELAY (1*CLK_TCK)
|
||||
#define LPC17_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -1512,7 +1511,7 @@ static void lpc17_poll_process(FAR struct lpc17_driver_s *priv)
|
||||
* transmit in progress, we will missing TCP time state updates?
|
||||
*/
|
||||
|
||||
(void)devif_timer(&priv->lp_dev, lpc17_txpoll, LPC17_POLLHSEC);
|
||||
(void)devif_timer(&priv->lp_dev, lpc17_txpoll);
|
||||
}
|
||||
|
||||
/* Simulate a fake receive to relaunch the data exchanges when a receive
|
||||
|
@ -223,7 +223,6 @@
|
||||
*/
|
||||
|
||||
#define LPC43_WDDELAY (1*CLK_TCK)
|
||||
#define LPC43_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -2255,7 +2254,7 @@ static inline void lpc43_poll_process(FAR struct lpc43_ethmac_s *priv)
|
||||
/* Update TCP timing states and poll for new XMIT data.
|
||||
*/
|
||||
|
||||
(void)devif_timer(dev, lpc43_txpoll, LPC43_POLLHSEC);
|
||||
(void)devif_timer(dev, lpc43_txpoll);
|
||||
|
||||
/* We will, most likely end up with a buffer to be freed. But it
|
||||
* might not be the same one that we allocated above.
|
||||
|
@ -247,7 +247,6 @@
|
||||
*/
|
||||
|
||||
#define SAM_WDDELAY (1*CLK_TCK)
|
||||
#define SAM_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -1847,7 +1846,7 @@ static inline void sam_poll_process(FAR struct sam_emac_s *priv)
|
||||
{
|
||||
/* Update TCP timing states and poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_timer(dev, sam_txpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_txpoll);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -239,7 +239,6 @@
|
||||
*/
|
||||
|
||||
#define SAM_WDDELAY (1*CLK_TCK)
|
||||
#define SAM_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -1670,7 +1669,7 @@ static void sam_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* Update TCP timing states and poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_timer(dev, sam_txpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_txpoll);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -327,7 +327,6 @@
|
||||
*/
|
||||
|
||||
#define SAM_WDDELAY (1*CLK_TCK)
|
||||
#define SAM_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -2267,7 +2266,7 @@ static inline void sam_poll_process(FAR struct sam_emac_s *priv)
|
||||
{
|
||||
/* Update TCP timing states and poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_timer(dev, sam_txpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_txpoll);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -165,7 +165,6 @@
|
||||
*/
|
||||
|
||||
#define SAM_WDDELAY (1*CLK_TCK)
|
||||
#define SAM_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -1622,7 +1621,7 @@ static void sam_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* Update TCP timing states and poll uIP for new XMIT data. */
|
||||
|
||||
(void)devif_timer(dev, sam_txpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_txpoll);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -409,7 +409,6 @@
|
||||
*/
|
||||
|
||||
#define SAM_WDDELAY (1*CLK_TCK)
|
||||
#define SAM_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -2714,7 +2713,7 @@ static inline void sam_poll_process(FAR struct sam_emac_s *priv)
|
||||
{
|
||||
/* Update TCP timing states and poll the network for new XMIT data. */
|
||||
|
||||
(void)devif_timer(dev, sam_txpoll, SAM_POLLHSEC);
|
||||
(void)devif_timer(dev, sam_txpoll);
|
||||
}
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
@ -267,7 +267,6 @@
|
||||
*/
|
||||
|
||||
#define STM32_WDDELAY (1*CLK_TCK)
|
||||
#define STM32_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -2325,7 +2324,7 @@ static inline void stm32_poll_process(FAR struct stm32_ethmac_s *priv)
|
||||
/* Update TCP timing states and poll uIP for new XMIT data.
|
||||
*/
|
||||
|
||||
(void)devif_timer(dev, stm32_txpoll, STM32_POLLHSEC);
|
||||
(void)devif_timer(dev, stm32_txpoll);
|
||||
|
||||
/* We will, most likely end up with a buffer to be freed. But it
|
||||
* might not be the same one that we allocated above.
|
||||
|
@ -290,7 +290,6 @@
|
||||
*/
|
||||
|
||||
#define STM32_WDDELAY (1*CLK_TCK)
|
||||
#define STM32_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -2441,7 +2440,7 @@ static inline void stm32_poll_process(struct stm32_ethmac_s *priv)
|
||||
/* Update TCP timing states and poll uIP for new XMIT data.
|
||||
*/
|
||||
|
||||
(void)devif_timer(dev, stm32_txpoll, STM32_POLLHSEC);
|
||||
(void)devif_timer(dev, stm32_txpoll);
|
||||
|
||||
/* We will, most likely end up with a buffer to be freed. But it
|
||||
* might not be the same one that we allocated above.
|
||||
|
@ -153,7 +153,6 @@
|
||||
/* TX poll deley = 1 seconds. CLK_TCK is the number of clock ticks per second */
|
||||
|
||||
#define TIVA_WDDELAY (1*CLK_TCK)
|
||||
#define TIVA_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -1072,7 +1071,7 @@ static void tiva_polltimer(int argc, uint32_t arg, ...)
|
||||
{
|
||||
/* If so, update TCP timing states and poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_timer(&priv->ld_dev, tiva_txpoll, TIVA_POLLHSEC);
|
||||
(void)devif_timer(&priv->ld_dev, tiva_txpoll);
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
|
@ -274,7 +274,6 @@
|
||||
*/
|
||||
|
||||
#define TIVA_WDDELAY (1*CLK_TCK)
|
||||
#define TIVA_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -2366,7 +2365,7 @@ static inline void tiva_poll_process(FAR struct tiva_ethmac_s *priv)
|
||||
/* Update TCP timing states and poll uIP for new XMIT data.
|
||||
*/
|
||||
|
||||
(void)devif_timer(dev, tiva_txpoll, TIVA_POLLHSEC);
|
||||
(void)devif_timer(dev, tiva_txpoll);
|
||||
|
||||
/* We will, most likely end up with a buffer to be freed. But it
|
||||
* might not be the same one that we allocated above.
|
||||
|
@ -74,7 +74,6 @@
|
||||
/* TX poll deley = 1 seconds. CLK_TCK is the number of clock ticks per second */
|
||||
|
||||
#define HCS12_WDDELAY (1*CLK_TCK)
|
||||
#define HCS12_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -521,7 +520,7 @@ static void emac_polltimer(int argc, uint32_t arg, ...)
|
||||
* we will missing TCP time state updates?
|
||||
*/
|
||||
|
||||
(void)devif_timer(&priv->d_dev, emac_txpoll, HCS12_POLLHSEC);
|
||||
(void)devif_timer(&priv->d_dev, emac_txpoll);
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
|
@ -169,7 +169,6 @@
|
||||
/* TX poll deley = 1 seconds. CLK_TCK is the number of clock ticks per second */
|
||||
|
||||
#define PIC32MX_WDDELAY (1*CLK_TCK)
|
||||
#define PIC32MX_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -1248,7 +1247,7 @@ static void pic32mx_timerpoll(struct pic32mx_driver_s *priv)
|
||||
/* And perform the poll */
|
||||
|
||||
priv->pd_polling = true;
|
||||
(void)devif_timer(&priv->pd_dev, pic32mx_txpoll, PIC32MX_POLLHSEC);
|
||||
(void)devif_timer(&priv->pd_dev, pic32mx_txpoll);
|
||||
|
||||
/* Free any buffer left attached after the poll */
|
||||
|
||||
|
@ -169,7 +169,6 @@
|
||||
/* TX poll deley = 1 seconds. CLK_TCK is the number of clock ticks per second */
|
||||
|
||||
#define PIC32MZ_WDDELAY (1*CLK_TCK)
|
||||
#define PIC32MZ_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -1266,7 +1265,7 @@ static void pic32mz_timerpoll(struct pic32mz_driver_s *priv)
|
||||
/* And perform the poll */
|
||||
|
||||
priv->pd_polling = true;
|
||||
(void)devif_timer(&priv->pd_dev, pic32mz_txpoll, PIC32MZ_POLLHSEC);
|
||||
(void)devif_timer(&priv->pd_dev, pic32mz_txpoll);
|
||||
|
||||
/* Free any buffer left attached after the poll */
|
||||
|
||||
|
@ -302,7 +302,7 @@ void netdriver_loop(void)
|
||||
else if (timer_expired(&g_periodic_timer))
|
||||
{
|
||||
timer_reset(&g_periodic_timer);
|
||||
devif_timer(&g_sim_dev, sim_txpoll, 1);
|
||||
devif_timer(&g_sim_dev, sim_txpoll);
|
||||
}
|
||||
sched_unlock();
|
||||
}
|
||||
|
@ -229,7 +229,6 @@
|
||||
/* TX poll deley = 1 seconds. CLK_TCK is the number of clock ticks per second */
|
||||
|
||||
#define EMAC_WDDELAY (1*CLK_TCK)
|
||||
#define EMAC_POLLHSEC (1*2)
|
||||
|
||||
/* TX timeout = 1 minute */
|
||||
|
||||
@ -1698,7 +1697,7 @@ static void ez80emac_polltimer(int argc, uint32_t arg, ...)
|
||||
|
||||
/* Poll uIP for new XMIT data */
|
||||
|
||||
(void)devif_timer(&priv->dev, ez80emac_txpoll, EMAC_POLLHSEC);
|
||||
(void)devif_timer(&priv->dev, ez80emac_txpoll);
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user