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:
Xiang Xiao
2020-08-06 17:08:40 +08:00
committed by Alan Carvalho de Assis
parent 3b76666a1e
commit 4c706771c3
115 changed files with 540 additions and 539 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ int nxsem_clockwait(FAR sem_t *sem, clockid_t clockid,
/* Start the watchdog */
wd_start(rtcb->waitdog, ticks, nxsem_timeout, 1, getpid());
wd_start(rtcb->waitdog, ticks, nxsem_timeout, 1, (wdparm_t)getpid());
/* Now perform the blocking wait. If nxsem_wait() fails, the
* negated errno value will be returned below.
+1 -1
View File
@@ -132,7 +132,7 @@ int nxsem_tickwait(FAR sem_t *sem, clock_t start, uint32_t delay)
/* Start the watchdog with interrupts still disabled */
wd_start(rtcb->waitdog, delay, nxsem_timeout, 1, getpid());
wd_start(rtcb->waitdog, delay, nxsem_timeout, 1, (wdparm_t)getpid());
/* Now perform the blocking wait */