|
openMMC
Open Source Modular MMC for AMCs
|
Watchdog module definitions. More...

Go to the source code of this file.
Macros | |
| #define | WATCHDOG_CLK_FREQ 8000000 |
| Watchdog module clock frequency (in Hz) | |
| #define | WATCHDOG_TIMEOUT 1000 /* in milisseconds */ |
| Watchdog timer timeout (in ms) | |
| #define | WATCHDOG_FEED_DELAY (WATCHDOG_TIMEOUT/3)*2 |
| Watchdog timer feed delay. | |
Functions | |
| void | watchdog_init (void) |
| Initializes and configures Watchdog timer. | |
| void | watchdog_reset_mcu (void) |
| Schedules a Reset on the next run of the Watchdog task. | |
| void | WatchdogTask (void *Parameters) |
| Periodically feed the Watchdog timer and checks if there's any Reset requests. | |
Watchdog module definitions.
| #define WATCHDOG_CLK_FREQ 8000000 |
Watchdog module clock frequency (in Hz)
| #define WATCHDOG_FEED_DELAY (WATCHDOG_TIMEOUT/3)*2 |
Watchdog timer feed delay.
We reload the watchdog timer at 2/3 of the max count
| #define WATCHDOG_TIMEOUT 1000 /* in milisseconds */ |
Watchdog timer timeout (in ms)
| void watchdog_init | ( | void | ) |
Initializes and configures Watchdog timer.
| void watchdog_reset_mcu | ( | void | ) |
Schedules a Reset on the next run of the Watchdog task.
| void WatchdogTask | ( | void * | Parameters | ) |
Periodically feed the Watchdog timer and checks if there's any Reset requests.
| Parameters | Pointer to a buffer of parameters passed to the task upon initialization |