Functions | |
void | WDT_A_hold (uint16_t baseAddress) |
Holds the Watchdog Timer. More... | |
void | WDT_A_start (uint16_t baseAddress) |
Starts the Watchdog Timer. More... | |
void | WDT_A_resetTimer (uint16_t baseAddress) |
Resets the timer counter of the Watchdog Timer. More... | |
void | WDT_A_initWatchdogTimer (uint16_t baseAddress, uint8_t clockSelect, uint8_t clockDivider) |
Sets the clock source for the Watchdog Timer in watchdog mode. More... | |
void | WDT_A_initIntervalTimer (uint16_t baseAddress, uint8_t clockSelect, uint8_t clockDivider) |
Sets the clock source for the Watchdog Timer in timer interval mode. More... | |
void WDT_A_hold | ( | uint16_t | baseAddress | ) |
Holds the Watchdog Timer.
This function stops the watchdog timer from running, that way no interrupt or PUC is asserted.
baseAddress | is the base address of the WDT_A module. |
void WDT_A_initIntervalTimer | ( | uint16_t | baseAddress, |
uint8_t | clockSelect, | ||
uint8_t | clockDivider | ||
) |
Sets the clock source for the Watchdog Timer in timer interval mode.
This function sets the watchdog timer as timer interval mode, which will assert an interrupt without causing a PUC.
baseAddress | is the base address of the WDT_A module. |
clockSelect | is the clock source that the watchdog timer will use. Valid values are:
|
clockDivider | is the divider of the clock source, in turn setting the watchdog timer interval. Valid values are:
|
void WDT_A_initWatchdogTimer | ( | uint16_t | baseAddress, |
uint8_t | clockSelect, | ||
uint8_t | clockDivider | ||
) |
Sets the clock source for the Watchdog Timer in watchdog mode.
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_A_resetTimer() before the timer runs out.
baseAddress | is the base address of the WDT_A module. |
clockSelect | is the clock source that the watchdog timer will use. Valid values are:
|
clockDivider | is the divider of the clock source, in turn setting the watchdog timer interval. Valid values are:
|
void WDT_A_resetTimer | ( | uint16_t | baseAddress | ) |
Resets the timer counter of the Watchdog Timer.
This function resets the watchdog timer to 0x0000h.
baseAddress | is the base address of the WDT_A module. |
void WDT_A_start | ( | uint16_t | baseAddress | ) |
Starts the Watchdog Timer.
This function starts the watchdog timer functionality to start counting again.
baseAddress | is the base address of the WDT_A module. |