TI-RTOS for SimpleLink Wireless MCUs
2.14.03.28
|
Watchdog driver implementation for MSP432.
============================================================================
The Watchdog header file for MSP432 should be included in an application as follows:
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.
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 <ti/drivers/ports/HwiP.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 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:
A sample structure is shown below:
typedef struct WatchdogMSP432_Object WatchdogMSP432_Object |
Watchdog Object for MSP432.
Not to be accessed by the user.
const Watchdog_FxnTable WatchdogMSP432_fxnTable |
Watchdog function table for MSP432.