diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-14 19:30:31 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-14 19:30:31 +0000 |
commit | 4ea9aa3ff134d0d893be8f8eaa6955c8b35e405b (patch) | |
tree | b34f7d2914cba8aeb9311c5bae3771af40054640 /nuttx/sched/wd_start.c | |
parent | 876ffbd29fcd090094da7be50a9b2f26bb1bab02 (diff) | |
download | px4-firmware-4ea9aa3ff134d0d893be8f8eaa6955c8b35e405b.tar.gz px4-firmware-4ea9aa3ff134d0d893be8f8eaa6955c8b35e405b.tar.bz2 px4-firmware-4ea9aa3ff134d0d893be8f8eaa6955c8b35e405b.zip |
Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directory
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4940 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched/wd_start.c')
-rw-r--r-- | nuttx/sched/wd_start.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/nuttx/sched/wd_start.c b/nuttx/sched/wd_start.c index a2f19fbdc..2a69d131a 100644 --- a/nuttx/sched/wd_start.c +++ b/nuttx/sched/wd_start.c @@ -93,24 +93,22 @@ typedef void (*wdentry4_t)(int argc, uint32_t arg1, uint32_t arg2, ****************************************************************************/ /**************************************************************************** - * Function: wd_start + * Name: wd_start * * Description: - * This function adds a watchdog to the timer queue. The - * specified watchdog function will be called from the - * interrupt level after the specified number of ticks has - * elapsed. Watchdog timers may be started from the - * interrupt level. + * This function adds a watchdog to the timer queue. The specified + * watchdog function will be called from the interrupt level after the + * specified number of ticks has elapsed. Watchdog timers may be started + * from the interrupt level. * - * Watchdog timers execute in the address enviroment that - * was in effect when wd_start() is called. + * Watchdog timers execute in the address enviroment that was in effect + * when wd_start() is called. * * Watchdog timers execute only once. * - * To replace either the timeout delay or the function to - * be executed, call wd_start again with the same wdog; only - * the most recent wdStart() on a given watchdog ID has - * any effect. + * To replace either the timeout delay or the function to be executed, + * call wd_start again with the same wdog; only the most recent wdStart() + * on a given watchdog ID has any effect. * * Parameters: * wdog = watchdog ID @@ -122,8 +120,8 @@ typedef void (*wdentry4_t)(int argc, uint32_t arg1, uint32_t arg2, * OK or ERROR * * Assumptions: - * The watchdog routine runs in the context of the timer interrupt - * handler and is subject to all ISR restrictions. + * The watchdog routine runs in the context of the timer interrupt handler + * and is subject to all ISR restrictions. * ****************************************************************************/ @@ -141,7 +139,7 @@ int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...) if (!wdog || argc > CONFIG_MAX_WDOGPARMS || delay < 0) { - *get_errno_ptr() = EINVAL; + set_errno(EINVAL); return ERROR; } @@ -275,7 +273,7 @@ int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...) } /**************************************************************************** - * Function: wd_timer + * Name: wd_timer * * Description: * This function is called from the timer interrupt handler to determine |