7 #ifndef __MSP430WARE_WDT_H__ 8 #define __MSP430WARE_WDT_H__ 10 #include "inc/hw_memmap.h" 12 #ifdef __MSP430_HAS_WDT__ 31 #define WDT_CLOCKSOURCE_SMCLK (0x00) 32 #define WDT_CLOCKSOURCE_ACLK (WDTSSEL) 40 #define WDT_CLOCKDIVIDER_32K (0x00) 41 #define WDT_CLOCKDIVIDER_8192 (WDTIS0) 42 #define WDT_CLOCKDIVIDER_512 (WDTIS1) 43 #define WDT_CLOCKDIVIDER_64 (WDTIS0 | WDTIS1) 63 extern void WDT_hold(uint16_t baseAddress);
77 extern void WDT_start(uint16_t baseAddress);
120 uint8_t clockDivider);
149 uint8_t clockDivider);
161 #endif // __MSP430WARE_WDT_H__ void WDT_start(uint16_t baseAddress)
Starts the Watchdog Timer.
Definition: wdt.c:30
void WDT_initWatchdogTimer(uint16_t baseAddress, uint8_t clockSelect, uint8_t clockDivider)
Sets the clock source for the Watchdog Timer in watchdog mode.
Definition: wdt.c:48
void WDT_resetTimer(uint16_t baseAddress)
Resets the timer counter of the Watchdog Timer.
Definition: wdt.c:39
void WDT_hold(uint16_t baseAddress)
Holds the Watchdog Timer.
Definition: wdt.c:21
void WDT_initIntervalTimer(uint16_t baseAddress, uint8_t clockSelect, uint8_t clockDivider)
Sets the clock source for the Watchdog Timer in timer interval mode.
Definition: wdt.c:56