diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 21:15:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 21:15:18 +0000 |
commit | 313eb5bb780f9e9baa353651996b51ce33a85fca (patch) | |
tree | 2bd68d26bb0f4b17186f7b7cdb26f0f5c02932fd /nuttx/sched/wd_start.c | |
parent | 33d20a1c87eb7cae586cc0d444729eda6c46e723 (diff) | |
download | nuttx-313eb5bb780f9e9baa353651996b51ce33a85fca.tar.gz nuttx-313eb5bb780f9e9baa353651996b51ce33a85fca.tar.bz2 nuttx-313eb5bb780f9e9baa353651996b51ce33a85fca.zip |
Switching to C99 stdbool.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2339 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/wd_start.c')
-rw-r--r-- | nuttx/sched/wd_start.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/sched/wd_start.c b/nuttx/sched/wd_start.c index 31bc3bea0..1f37dbf99 100644 --- a/nuttx/sched/wd_start.c +++ b/nuttx/sched/wd_start.c @@ -40,6 +40,7 @@ #include <sys/types.h> #include <stdint.h> +#include <stdbool.h> #include <stdarg.h> #include <wdog.h> #include <unistd.h> @@ -52,7 +53,7 @@ #include "wd_internal.h" /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /**************************************************************************** @@ -267,7 +268,7 @@ int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...) /* Put the lag into the watchdog structure and mark it as active. */ wdog->lag = delay; - wdog->active = TRUE; + wdog->active = true; irqrestore(saved_state); return OK; @@ -330,7 +331,7 @@ void wd_timer(void) /* Indicate that the watchdog is no longer active. */ - wdog->active = FALSE; + wdog->active = false; /* Get the current task's process ID. We'll need this later to * see if the watchdog function caused a context switch. |