summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_wwdg.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-16 21:13:54 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-16 21:13:54 +0000
commit4182100cbbfd9439071369ae2cbdb36d4679cc2e (patch)
tree5abb85a3671a4848e95a6a07a3fe4e8886c7632f /nuttx/arch/arm/src/stm32/stm32_wwdg.c
parent2652ddc81dd82bdcd788beffd73455802134c6b8 (diff)
downloadpx4-nuttx-4182100cbbfd9439071369ae2cbdb36d4679cc2e.tar.gz
px4-nuttx-4182100cbbfd9439071369ae2cbdb36d4679cc2e.tar.bz2
px4-nuttx-4182100cbbfd9439071369ae2cbdb36d4679cc2e.zip
STM32 IWDG watchdog works
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4619 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_wwdg.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_wwdg.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_wwdg.c b/nuttx/arch/arm/src/stm32/stm32_wwdg.c
index 3272d569a..4506fa4e0 100644
--- a/nuttx/arch/arm/src/stm32/stm32_wwdg.c
+++ b/nuttx/arch/arm/src/stm32/stm32_wwdg.c
@@ -57,7 +57,7 @@
* Pre-Processor Definitions
****************************************************************************/
/* Clocking *****************************************************************/
-/* The minimum frequency of the WWD clock is:
+/* The minimum frequency of the WWDG clock is:
*
* Fmin = PCLK1 / 4096 / 8
*
@@ -334,7 +334,7 @@ static int stm32_interrupt(int irq, FAR void *context)
* Start the watchdog timer, resetting the time to the current timeout,
*
* Input Parameters:
- * lower - A pointer the publicly visible representation of the "lower
+ * lower - A pointer the publicly visible representation of the "lower-half"
* driver state structure.
*
* Returned Values:
@@ -366,7 +366,7 @@ static int stm32_start(FAR struct watchdog_lowerhalf_s *lower)
* Stop the watchdog timer
*
* Input Parameters:
- * lower - A pointer the publicly visible representation of the "lower
+ * lower - A pointer the publicly visible representation of the "lower-half"
* driver state structure.
*
* Returned Values:
@@ -400,7 +400,7 @@ static int stm32_stop(FAR struct watchdog_lowerhalf_s *lower)
* 0xff and 0xC0:
*
* Input Parameters:
- * lower - A pointer the publicly visible representation of the "lower
+ * lower - A pointer the publicly visible representation of the "lower-half"
* driver state structure.
*
* Returned Values:
@@ -430,7 +430,7 @@ static int stm32_keepalive(FAR struct watchdog_lowerhalf_s *lower)
* Get the current watchdog timer status
*
* Input Parameters:
- * lower - A pointer the publicly visible representation of the "lower
+ * lower - A pointer the publicly visible representation of the "lower-half"
* driver state structure.
* stawtus - The location to return the watchdog status information.
*
@@ -486,7 +486,7 @@ static int stm32_getstatus(FAR struct watchdog_lowerhalf_s *lower,
* Set a new timeout value (and reset the watchdog timer)
*
* Input Parameters:
- * lower - A pointer the publicly visible representation of the "lower
+ * lower - A pointer the publicly visible representation of the "lower-half"
* driver state structure.
* timeout - The new timeout value in millisecnds.
*
@@ -583,7 +583,7 @@ static int stm32_settimeout(FAR struct watchdog_lowerhalf_s *lower,
/* Calculate and save the actual timeout value in milliseconds:
*
- * timeout = 1000 * (reload + 1) / Fwwdg, OR
+ * timeout = 1000 * (reload + 1) / Fwwdg
*/
priv->timeout = 1000 * (reload + 1) / fwwdg;
@@ -620,7 +620,7 @@ static int stm32_settimeout(FAR struct watchdog_lowerhalf_s *lower,
* behavior.
*
* Input Parameters:
- * lower - A pointer the publicly visible representation of the "lower
+ * lower - A pointer the publicly visible representation of the "lower-half"
* driver state structure.
* newhandler - The new watchdog expiration function pointer. If this
* function pointer is NULL, then the the reset-on-expiration
@@ -687,7 +687,7 @@ static xcpt_t stm32_capture(FAR struct watchdog_lowerhalf_s *lower,
* are forwarded to the lower half driver through this method.
*
* Input Parameters:
- * lower - A pointer the publicly visible representation of the "lower
+ * lower - A pointer the publicly visible representation of the "lower-half"
* driver state structure.
* cmd - The ioctol command value
* arg - The optional argument that accompanies the 'cmd'. The