mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Finish STM32 IWDG and WWDG watchdog timer drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4613 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -54,6 +54,8 @@
|
||||
* transfer interface, the majority of the functionality is implemented in
|
||||
* driver ioctl calls. The watchdog ioctl commands are lised below:
|
||||
*
|
||||
* These are detected and handled by the "upper half" watchdog timer driver.
|
||||
*
|
||||
* WDIOC_START - Start the watchdog timer
|
||||
* Argument: Ignored
|
||||
* WDIOC_STOP - Stop the watchdog timer
|
||||
@@ -66,6 +68,14 @@
|
||||
* Argument: A pointer to struct watchdog_capture_s.
|
||||
* WDIOC_KEEPALIVE - Reset the watchdog timer ("ping", "pet the dog");
|
||||
* Argument: Ignored
|
||||
*
|
||||
* These may be supported by certain "lower half" drivers
|
||||
*
|
||||
* WDIOC_MINTIME - Set the minimum ping time. If two keepalive ioctls
|
||||
* are received within this time, a reset event will
|
||||
* be generated. This feature should assume to be
|
||||
* disabled after WDIOC_SETTIMEOUT.
|
||||
* Argument: A 32-bit time value in milliseconds.
|
||||
*/
|
||||
|
||||
#define WDIOC_START _WDIOC(0x001)
|
||||
@@ -75,6 +85,8 @@
|
||||
#define WDIOC_CAPTURE _WDIOC(0x005)
|
||||
#define WDIOC_KEEPALIVE _WDIOC(0x006)
|
||||
|
||||
#define WDIOC_MINTIME _WDIOC(0x080)
|
||||
|
||||
/* Bit Settings *************************************************************/
|
||||
/* Bit settings for the struct watchdog_status_s flags field */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user