wdt.h
Go to the documentation of this file.
00001 #ifndef __MSP430WARE_WDT_H__
00002 #define __MSP430WARE_WDT_H__
00003 
00004 //*****************************************************************************
00005 //
00006 //The following are the defines to include the required modules for this
00007 //peripheral in msp430xgeneric.h file
00008 //
00009 //*****************************************************************************
00010 #define __MSP430_HAS_WDT_A__
00011 
00012 //*****************************************************************************
00013 //
00014 //The following are values that can be passed to WDT_watchdogTimerInit() and
00015 //WDT_intervalTimerInit() in the clockSelect parameter.
00016 //
00017 //*****************************************************************************
00018 #define WDT_CLOCKSOURCE_SMCLK  (WDTSSEL_0)
00019 #define WDT_CLOCKSOURCE_ACLK   (WDTSSEL_1)
00020 #define WDT_CLOCKSOURCE_VLOCLK (WDTSSEL_2)
00021 #define WDT_CLOCKSOURCE_XCLK   (WDTSSEL_3)
00022 
00023 //*****************************************************************************
00024 //
00025 //The following are values that can be passed to WDT_watchdogTimerInit() and
00026 //WDT_intervalTimerInit in the clockDivider parameter.
00027 //
00028 //*****************************************************************************
00029 #define WDT_CLOCKDIVIDER_2G    (WDTIS_0)
00030 #define WDT_CLOCKDIVIDER_128M  (WDTIS_1)
00031 #define WDT_CLOCKDIVIDER_8192K (WDTIS_2)
00032 #define WDT_CLOCKDIVIDER_512K  (WDTIS_3)
00033 #define WDT_CLOCKDIVIDER_32K   (WDTIS_4)
00034 #define WDT_CLOCKDIVIDER_8192  (WDTIS_5)
00035 #define WDT_CLOCKDIVIDER_512   (WDTIS_6)
00036 #define WDT_CLOCKDIVIDER_64    (WDTIS_7)
00037 
00038 //*****************************************************************************
00039 //
00040 //Prototypes for the APIs.
00041 //
00042 //*****************************************************************************
00043 
00044 extern void WDT_hold (unsigned int baseAddress);
00045 
00046 extern void WDT_start (unsigned int baseAddress);
00047 
00048 extern void WDT_resetTimer (unsigned int baseAddress);
00049 
00050 extern void WDT_watchdogTimerInit (unsigned int baseAddress,
00051     unsigned char clockSelect,
00052     unsigned char clockDivider);
00053 
00054 extern void WDT_intervalTimerInit (unsigned int baseAddress,
00055     unsigned char clockSelect,
00056     unsigned char clockDivider);
00057 
00058 #endif

Copyright 2012, Texas Instruments Incorporated