openMMC
Open Source Modular MMC for AMCs
|
Definitions of Watchdog driver implementation for LPC17xx. More...
#include "wwdt_17xx_40xx.h"
Go to the source code of this file.
Macros | |
#define | LPC17_WATCHDOG_H_ |
#define | wdt_init() Chip_WWDT_Init(LPC_WWDT) |
Initialize the Watchdog timer. | |
#define | wdt_start() Chip_WWDT_Start(LPC_WWDT) |
Start the Watchdog timer. | |
#define | wdt_config() Chip_WWDT_SetOption(LPC_WWDT, WWDT_WDMOD_WDRESET) |
Config the Watchdog timer to reset upon count end. | |
#define | wdt_set_timeout(timeout) Chip_WWDT_SetTimeOut(LPC_WWDT, timeout) |
Set Watchdog Timer max count. | |
#define | wdt_feed() Chip_WWDT_Feed(LPC_WWDT) |
Reload the watchdog counter. | |
Definitions of Watchdog driver implementation for LPC17xx.
#define LPC17_WATCHDOG_H_ |
#define wdt_config | ( | ) | Chip_WWDT_SetOption(LPC_WWDT, WWDT_WDMOD_WDRESET) |
Config the Watchdog timer to reset upon count end.
#define wdt_feed | ( | ) | Chip_WWDT_Feed(LPC_WWDT) |
Reload the watchdog counter.
#define wdt_init | ( | ) | Chip_WWDT_Init(LPC_WWDT) |
Initialize the Watchdog timer.
#define wdt_set_timeout | ( | timeout | ) | Chip_WWDT_SetTimeOut(LPC_WWDT, timeout) |
Set Watchdog Timer max count.
Select the max count for the timer, when this count reaches 0, the chip is reseted
[in] | timeout | Max count for Watchdog timer |
#define wdt_start | ( | ) | Chip_WWDT_Start(LPC_WWDT) |
Start the Watchdog timer.