#include "driverlib/5xx_6xx/wdt.h"
#include "inc/hw_types.h"
#include "deprecated/CCS/msp430xgeneric.h"
#include "driverlib/5xx_6xx/debug.h"
Functions | |
void | WDT_hold (unsigned int baseAddress) |
void | WDT_start (unsigned int baseAddress) |
void | WDT_resetTimer (unsigned int baseAddress) |
void | WDT_watchdogTimerInit (unsigned int baseAddress, unsigned char clockSelect, unsigned char clockDivider) |
void | WDT_intervalTimerInit (unsigned int baseAddress, unsigned char clockSelect, unsigned char clockDivider) |
void WDT_hold | ( | unsigned int | baseAddress | ) |
void WDT_start | ( | unsigned int | baseAddress | ) |
void WDT_resetTimer | ( | unsigned int | baseAddress | ) |
void WDT_watchdogTimerInit | ( | unsigned int | baseAddress, |
unsigned char | clockSelect, | ||
unsigned char | clockDivider | ||
) |
Sets the clock source for the Watchdog Timer in timer interval mode.
baseAddress | is the base address of the WDT module. |
clockSelect | is the clock source that the watchdog timer will use. Valid values are WDT_CLOCKSOURCE_SMCLK [Default] WDT_CLOCKSOURCE_ACLK WDT_CLOCKSOURCE_VLOCLK WDT_CLOCKSOURCE_XCLK Modified bits are WDTSSEL of WDTCTL register. |
clockDivider | is the divider of the clock source, in turn setting the watchdog timer interval. Valid values are WDT_CLOCKDIVIDER_2G WDT_CLOCKDIVIDER_128M WDT_CLOCKDIVIDER_8192K WDT_CLOCKDIVIDER_512K WDT_CLOCKDIVIDER_32K [Default] WDT_CLOCKDIVIDER_8192 WDT_CLOCKDIVIDER_512 WDT_CLOCKDIVIDER_64 Modifed bits are WDTIS of WDTCTL register. |
This function sets the watchdog timer as timer interval mode, which will assert an interrupt without causing a PUC.
References HWREG.
void WDT_intervalTimerInit | ( | unsigned int | baseAddress, |
unsigned char | clockSelect, | ||
unsigned char | clockDivider | ||
) |
Sets the clock source for the Watchdog Timer in watchdog mode.
baseAddress | is the base address of the WDT module. |
clockSelect | is the clock source that the watchdog timer will use. Valid values are WDT_CLOCKSOURCE_SMCLK [Default] WDT_CLOCKSOURCE_ACLK WDT_CLOCKSOURCE_VLOCLK WDT_CLOCKSOURCE_XCLK Modified bits are WDTSSEL of WDTCTL register. |
clockDivider | is the divider of the clock source, in turn setting the watchdog timer interval. Valid values are WDT_CLOCKDIVIDER_2G WDT_CLOCKDIVIDER_128M WDT_CLOCKDIVIDER_8192K WDT_CLOCKDIVIDER_512K WDT_CLOCKDIVIDER_32K [Default] WDT_CLOCKDIVIDER_8192 WDT_CLOCKDIVIDER_512 WDT_CLOCKDIVIDER_64 Modifed bits are WDTIS of WDTCTL register. |
This function sets the watchdog timer in watchdog mode, which will cause a PUC when the timer overflows. When in the mode, a PUC can be avoided with a call to WDT_resetTimer() before the timer runs out.
References HWREG.