TI-RTOS Drivers  tidrivers_full_2_20_00_08
Data Structures | Typedefs | Variables
WatchdogMSP430.h File Reference

Detailed Description

Watchdog driver implementation for MSP430.

============================================================================

The Watchdog header file for MSP430 should be included in an application as follows:

Refer to Watchdog.h for a complete description of APIs & example of use.

The MSP430 Watchdog Timer will cause resets at an interval based on the count calculated from the clock source and clock divider specified in the WatchdogMSP430_HWAttrs. By default the Watchdog driver has resets turned on. This means that if Watchdog_clear() is not called to reset the Watchdog timer before it times out, a reset will be generated. Watchdog_close() will stop the Watchdog timer. To restart it again, Watchdog_open() must be called.

Opening the Watchdog driver with resets turned off (using the resetMode parameter) allows the Watchdog Timer to be used like another timer interrupt. To plug the ISR you wish to use, create a Hwi in your application's .cfg file with the appropriate WDT interrupt number.

Note: The Watchdog_Params callbackFxn and debugStallMode are not used in this implementation nor is the Watchdog_setReload() API.


#include <stdint.h>
#include <stdbool.h>
#include <ti/drivers/Watchdog.h>
Include dependency graph for WatchdogMSP430.h:

Go to the source code of this file.

Data Structures

struct  WatchdogMSP430_HWAttrs
 Watchdog hardware attributes for MSP430. More...
 
struct  WatchdogMSP430_Object
 Watchdog Object for MSP430. More...
 

Typedefs

typedef struct WatchdogMSP430_HWAttrs WatchdogMSP430_HWAttrs
 Watchdog hardware attributes for MSP430. More...
 
typedef struct WatchdogMSP430_Object WatchdogMSP430_Object
 Watchdog Object for MSP430. More...
 

Variables

const Watchdog_FxnTable WatchdogMSP430_fxnTable
 Watchdog function table for MSP430. More...
 

Typedef Documentation

Watchdog hardware attributes for MSP430.

Watchdog Object for MSP430.

Not to be accessed by the user.

Variable Documentation

const Watchdog_FxnTable WatchdogMSP430_fxnTable

Watchdog function table for MSP430.

Copyright 2016, Texas Instruments Incorporated