summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_wdg.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-15 01:11:54 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-15 01:11:54 +0000
commit7bf071be1a572106fab0f4508ab01312c934b94d (patch)
treede3b02d6f7f48c9b94125f07c2df4d0029795dbe /nuttx/arch/arm/src/stm32/stm32_wdg.h
parentb53d8081c1e407bdc9188f9b4f320846a1a50241 (diff)
downloadpx4-nuttx-7bf071be1a572106fab0f4508ab01312c934b94d.tar.gz
px4-nuttx-7bf071be1a572106fab0f4508ab01312c934b94d.tar.bz2
px4-nuttx-7bf071be1a572106fab0f4508ab01312c934b94d.zip
Add skeleton file for STM32 watchdog timer driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4611 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_wdg.h')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_wdg.h58
1 files changed, 42 insertions, 16 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_wdg.h b/nuttx/arch/arm/src/stm32/stm32_wdg.h
index 5d9fc6f19..f01798ef4 100644
--- a/nuttx/arch/arm/src/stm32/stm32_wdg.h
+++ b/nuttx/arch/arm/src/stm32/stm32_wdg.h
@@ -1,8 +1,8 @@
-/************************************************************************************
+/****************************************************************************
* arch/arm/src/stm32/stm32_wdg.h
*
- * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <gnutt@nuttx.org>
+ * Copyright (C) 2012 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -31,34 +31,60 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************************************/
+ ****************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32_STM32_WDG_H
#define __ARCH_ARM_SRC_STM32_STM32_WDG_H
-/************************************************************************************
+/****************************************************************************
* Included Files
- ************************************************************************************/
+ ****************************************************************************/
#include <nuttx/config.h>
#include "chip.h"
#include "chip/stm32_wdg.h"
-/************************************************************************************
+/****************************************************************************
* Pre-processor Definitions
- ************************************************************************************/
+ ****************************************************************************/
-/************************************************************************************
- * Public Types
- ************************************************************************************/
+#ifndef __ASSEMBLY__
-/************************************************************************************
- * Public Data
- ************************************************************************************/
+#undef EXTERN
+#if defined(__cplusplus)
+#define EXTERN extern "C"
+extern "C" {
+#else
+#define EXTERN extern
+#endif
-/************************************************************************************
+/****************************************************************************
* Public Functions
- ************************************************************************************/
+ ****************************************************************************/
+
+/****************************************************************************
+ * Name: stm32_wdginitialize
+ *
+ * Description:
+ * Initialize the watchdog time. The watchdog timer is intialized and
+ * registers as /dev/watchdog0. The initial state of the watchdog time
+ * is disabled.
+ *
+ * Input Parameters:
+ * None
+ *
+ * Returned Values:
+ * None
+ *
+ ****************************************************************************/
+
+EXTERN void stm32_wdginitialize(void);
+
+#undef EXTERN
+#if defined(__cplusplus)
+}
+#endif
+#endif /* __ASSEMBLY__ */
#endif /* __ARCH_ARM_SRC_STM32_STM32_WDG_H */