Data Structures | Typedefs | Variables
WatchdogMSP432.h File Reference

Detailed Description

Watchdog driver implementation for MSP432.


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

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

Overview

The MSP432 Watchdog Timer will cause resets at an interval based on the count calculated from the clock source and clock divider specified in the WatchdogMSP432_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. The callback fxn provided in the params will be executed when the timer expires.

Unsupported Functionality

  1. Watchdog_Params debugStallMode is not supported by this implementation.
  2. Watchdog_Params callbackFxn is not supported when using Watchdog_RESET_ON mode.
  3. Watchdog_setReload() and WatchdogMSP432_convertMsToTicks() APIs are not supported by this implementation.
#include <stdint.h>
#include <stdbool.h>
#include <ti/drivers/Watchdog.h>
#include <ti/drivers/dpl/HwiP.h>
Include dependency graph for WatchdogMSP432.h:

Go to the source code of this file.

Data Structures

struct  WatchdogMSP432_HWAttrs
 Watchdog hardware attributes for MSP432 These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For MSP432Ware these definitions are found in: More...
 
struct  WatchdogMSP432_Object
 Watchdog Object for MSP432. More...
 

Typedefs

typedef struct WatchdogMSP432_HWAttrs WatchdogMSP432_HWAttrs
 Watchdog hardware attributes for MSP432 These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For MSP432Ware these definitions are found in: More...
 
typedef struct WatchdogMSP432_Object WatchdogMSP432_Object
 Watchdog Object for MSP432. More...
 

Variables

const Watchdog_FxnTable WatchdogMSP432_fxnTable
 Watchdog function table for MSP432. More...
 

Typedef Documentation

§ WatchdogMSP432_HWAttrs

Watchdog hardware attributes for MSP432 These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For MSP432Ware these definitions are found in:

  • wdt_a.h

intPriority is the Watchdog timer's interrupt priority, as defined by the underlying OS. It is passed unmodified to the underlying OS's interrupt handler creation code, so you need to refer to the OS documentation for usage. For example, for SYS/BIOS applications, refer to the ti.sysbios.family.arm.m3.Hwi documentation for SYS/BIOS usage of interrupt priorities. If the driver uses the ti.dpl interface instead of making OS calls directly, then the HwiP port handles the interrupt priority in an OS specific way. In the case of the SYS/BIOS port, intPriority is passed unmodified to Hwi_create().

A sample structure is shown below:

const WatchdogMSP432_HWAttrs watchdogMSP432HWAttrs[MSP_EXP432P401R_WATCHDOGCOUNT] = {
{
.baseAddr = WDT_A_BASE,
.intNum = INT_WDT_A,
.intPriority = ~0,
.clockSource = WDT_A_CLOCKSOURCE_SMCLK,
.clockDivider = WDT_A_CLOCKDIVIDER_8192K
},
};

§ WatchdogMSP432_Object

Watchdog Object for MSP432.

Not to be accessed by the user.

Variable Documentation

§ WatchdogMSP432_fxnTable

const Watchdog_FxnTable WatchdogMSP432_fxnTable

Watchdog function table for MSP432.

© Copyright 1995-2018, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale