diff options
Diffstat (limited to 'nuttx/sched/wd_start.c')
-rw-r--r-- | nuttx/sched/wd_start.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/nuttx/sched/wd_start.c b/nuttx/sched/wd_start.c index 39525c0bc5..31bc3bea0c 100644 --- a/nuttx/sched/wd_start.c +++ b/nuttx/sched/wd_start.c @@ -39,6 +39,7 @@ #include <sys/types.h> +#include <stdint.h> #include <stdarg.h> #include <wdog.h> #include <unistd.h> @@ -60,18 +61,18 @@ typedef void (*wdentry0_t)(int argc); #if CONFIG_MAX_WDOGPARMS > 0 -typedef void (*wdentry1_t)(int argc, uint32 arg1); +typedef void (*wdentry1_t)(int argc, uint32_t arg1); #endif #if CONFIG_MAX_WDOGPARMS > 1 -typedef void (*wdentry2_t)(int argc, uint32 arg1, uint32 arg2); +typedef void (*wdentry2_t)(int argc, uint32_t arg1, uint32_t arg2); #endif #if CONFIG_MAX_WDOGPARMS > 2 -typedef void (*wdentry3_t)(int argc, uint32 arg1, uint32 arg2, - uint32 arg3); +typedef void (*wdentry3_t)(int argc, uint32_t arg1, uint32_t arg2, + uint32_t arg3); #endif #if CONFIG_MAX_WDOGPARMS > 3 -typedef void (*wdentry4_t)(int argc, uint32 arg1, uint32 arg2, - uint32 arg3, uint32 arg4); +typedef void (*wdentry4_t)(int argc, uint32_t arg1, uint32_t arg2, + uint32_t arg3, uint32_t arg4); #endif /**************************************************************************** @@ -131,7 +132,7 @@ int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...) FAR wdog_t *curr; FAR wdog_t *prev; FAR wdog_t *next; - sint32 now; + int32_t now; irqstate_t saved_state; int i; @@ -164,7 +165,7 @@ int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...) va_start(ap, argc); for (i = 0; i < argc; i++) { - wdog->parm[i] = va_arg(ap, uint32); + wdog->parm[i] = va_arg(ap, uint32_t); } #ifdef CONFIG_DEBUG for (; i < CONFIG_MAX_WDOGPARMS; i++) |