openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
lpc17_watchdog.h File Reference

Definitions of Watchdog driver implementation for LPC17xx. More...

#include "wwdt_17xx_40xx.h"
Include dependency graph for lpc17_watchdog.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Definitions of Watchdog driver implementation for LPC17xx.

Author
Henrique Silva henri.nosp@m.que..nosp@m.silva.nosp@m.@lnl.nosp@m.s.br, LNLS
Date
December 2015

Macro Definition Documentation

◆ LPC17_WATCHDOG_H_

#define LPC17_WATCHDOG_H_

◆ wdt_config

#define wdt_config ( )    Chip_WWDT_SetOption(LPC_WWDT, WWDT_WDMOD_WDRESET)

Config the Watchdog timer to reset upon count end.

Returns
None

◆ wdt_feed

#define wdt_feed ( )    Chip_WWDT_Feed(LPC_WWDT)

Reload the watchdog counter.

Returns
None

◆ wdt_init

#define wdt_init ( )    Chip_WWDT_Init(LPC_WWDT)

Initialize the Watchdog timer.

Returns
None

◆ wdt_set_timeout

#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

Parameters
[in]timeoutMax count for Watchdog timer
Returns
None

◆ wdt_start

#define wdt_start ( )    Chip_WWDT_Start(LPC_WWDT)

Start the Watchdog timer.

Returns
None