mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
sched/wdog: Replace all callback argument from uint32_t to wdparm_t
and alwasy cast the argument of wd_start to wdparm_t Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
3b76666a1e
commit
4c706771c3
+10
-10
@@ -335,9 +335,9 @@ static int enc_interrupt(int irq, FAR void *context, FAR void *arg);
|
||||
/* Watchdog timer expirations */
|
||||
|
||||
static void enc_toworker(FAR void *arg);
|
||||
static void enc_txtimeout(int argc, uint32_t arg, ...);
|
||||
static void enc_txtimeout(int argc, wdparm_t arg, ...);
|
||||
static void enc_pollworker(FAR void *arg);
|
||||
static void enc_polltimer(int argc, uint32_t arg, ...);
|
||||
static void enc_polltimer(int argc, wdparm_t arg, ...);
|
||||
|
||||
/* NuttX callback functions */
|
||||
|
||||
@@ -1158,8 +1158,8 @@ static int enc_transmit(FAR struct enc_driver_s *priv)
|
||||
* the timer is started?
|
||||
*/
|
||||
|
||||
wd_start(priv->txtimeout, ENC_TXTIMEOUT, enc_txtimeout, 1,
|
||||
(wdparm_t)priv);
|
||||
wd_start(priv->txtimeout, ENC_TXTIMEOUT,
|
||||
enc_txtimeout, 1, (wdparm_t)priv);
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -1942,7 +1942,7 @@ static void enc_toworker(FAR void *arg)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void enc_txtimeout(int argc, uint32_t arg, ...)
|
||||
static void enc_txtimeout(int argc, wdparm_t arg, ...)
|
||||
{
|
||||
FAR struct enc_driver_s *priv = (FAR struct enc_driver_s *)arg;
|
||||
int ret;
|
||||
@@ -2016,8 +2016,8 @@ static void enc_pollworker(FAR void *arg)
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
wd_start(priv->txpoll, ENC_WDDELAY, enc_polltimer, 1,
|
||||
(wdparm_t)arg);
|
||||
wd_start(priv->txpoll, ENC_WDDELAY,
|
||||
enc_polltimer, 1, (wdparm_t)arg);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@@ -2037,7 +2037,7 @@ static void enc_pollworker(FAR void *arg)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void enc_polltimer(int argc, uint32_t arg, ...)
|
||||
static void enc_polltimer(int argc, wdparm_t arg, ...)
|
||||
{
|
||||
FAR struct enc_driver_s *priv = (FAR struct enc_driver_s *)arg;
|
||||
int ret;
|
||||
@@ -2116,8 +2116,8 @@ static int enc_ifup(struct net_driver_s *dev)
|
||||
|
||||
/* Set and activate a timer process */
|
||||
|
||||
wd_start(priv->txpoll, ENC_WDDELAY, enc_polltimer, 1,
|
||||
(wdparm_t)priv);
|
||||
wd_start(priv->txpoll, ENC_WDDELAY,
|
||||
enc_polltimer, 1, (wdparm_t)priv);
|
||||
|
||||
/* Mark the interface up and enable the Ethernet interrupt at the
|
||||
* controller
|
||||
|
||||
Reference in New Issue
Block a user