|
AM62x MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
48 #ifndef WATCHDOG_RTI_H_
49 #define WATCHDOG_RTI_H_
61 #include <drivers/hw_include/cslr_watchdog.h>
70 #define WATCHDOG_CLEAR_STATUS (0xFFU)
84 typedef struct Watchdog_HwAttrs_s
110 typedef enum Watchdog_DebugMode_e {
122 typedef enum Watchdog_ResetMode_e {
132 typedef enum Watchdog_WindowSize_e {
163 typedef struct Watchdog_Params_t {
183 typedef struct Watchdog_Config_s {
200 typedef enum Watchdog_DriverState_e
221 typedef struct Watchdog_MCB_t
@ Watchdog_WINDOW_100_PERCENT
Definition: watchdog_rti.h:133
void Watchdog_paramsInit(Watchdog_Params *params)
Function to set default values of Watchdog_Params in params.
@ Watchdog_WINDOW_50_PERCENT
Definition: watchdog_rti.h:134
@ Watchdog_DriverState_OPERATIONAL
Driver is operational.
Definition: watchdog_rti.h:210
void Watchdog_setReaction(Watchdog_Handle handle, uint32_t dwwdReaction)
Set DWWD reaction.
@ Watchdog_DEBUG_STALL_ON
Definition: watchdog_rti.h:111
@ Watchdog_WINDOW_25_PERCENT
Definition: watchdog_rti.h:135
uint16_t index
Definition: tisci_rm_proxy.h:3
uint32_t Watchdog_getWindowSize(Watchdog_Handle handle)
Get DWWD Window Size.
Watchdog Global configuration.
Definition: watchdog_rti.h:183
Watchdog_DebugMode
Watchdog debug stall settings.
Definition: watchdog_rti.h:110
void(* Watchdog_Callback)(Watchdog_Handle handle, void *callbackFxnArgs)
Watchdog callback pointer.
Definition: watchdog_rti.h:154
Watchdog_Handle Watchdog_open(uint8_t index, Watchdog_Params *params)
Opens a Watchdog object with the index and parameters specified, and returns a Watchdog_Handle.
struct Watchdog_Config_s * Watchdog_Handle
Watchdog Handle.
Definition: watchdog_rti.h:144
@ Watchdog_WINDOW_3_125_PERCENT
Definition: watchdog_rti.h:138
uint32_t interruptsRxed
Number of interrupts received. Valid only when resetMode = Watchdog_RESET_OFF.
Definition: watchdog_rti.h:236
uint32_t watchdogCleared
Number of times watchdog was serviced.
Definition: watchdog_rti.h:241
void Watchdog_setWindowSize(Watchdog_Handle handle, uint32_t dwwdWindowSize)
Set DWWD Window Size.
void * callbackFxnArgs
Definition: watchdog_rti.h:165
void const * hwAttrs
Definition: watchdog_rti.h:189
void * object
Definition: watchdog_rti.h:186
@ Watchdog_WINDOW_6_25_PERCENT
Definition: watchdog_rti.h:137
Watchdog Parameters.
Definition: watchdog_rti.h:163
@ Watchdog_RESET_OFF
Definition: watchdog_rti.h:123
Watchdog_WindowSize
Watchdog Window Size settings.
Definition: watchdog_rti.h:132
Watchdog_ResetMode
Watchdog reset mode settings.
Definition: watchdog_rti.h:122
void Watchdog_init(void)
The functions initializes the Watchdog module.
Watchdog_Callback callbackFxn
Definition: watchdog_rti.h:164
bool Watchdog_isClosedWindow(Watchdog_Handle handle)
The function checks for Closed Window.
Watchdog_DriverState
Watchdog Driver Status.
Definition: watchdog_rti.h:201
void Watchdog_close(Watchdog_Handle handle)
The function closes a Watchdog peripheral specified by the Watchdog handle. It stops (holds) the Watc...
@ Watchdog_DEBUG_STALL_OFF
Definition: watchdog_rti.h:112
Watchdog_DriverState state
Watchdog driver internal state.
Definition: watchdog_rti.h:226
@ Watchdog_WINDOW_12_5_PERCENT
Definition: watchdog_rti.h:136
uint32_t wdtClkFrequency
WDT clock frequency.
Definition: watchdog_rti.h:99
Watchdog_DebugMode debugStallMode
Definition: watchdog_rti.h:167
Watchdog_ResetMode resetMode
Definition: watchdog_rti.h:166
@ Watchdog_RESET_ON
Definition: watchdog_rti.h:124
Watchdog Driver Master Control Block.
Definition: watchdog_rti.h:222
uint8_t instance
Instance of the Watchdog to be used.
Definition: watchdog_rti.h:90
Watchdog Driver HW configuration.
Definition: watchdog_rti.h:85
uintptr_t baseAddr
Base address of the Watchdog address space to be used.
Definition: watchdog_rti.h:94
Watchdog_WindowSize windowSize
Definition: watchdog_rti.h:168
Watchdog_Params params
Watchdog Parameters which were used to initialize the driver instance.
Definition: watchdog_rti.h:231
void Watchdog_clear(Watchdog_Handle handle)
The function clears the Watchdog to prevent a reset signal from being generated if the module is in W...
void Watchdog_deinit(void)
The functions de-initializes the Watchdog module.
uint32_t expirationTime
Definition: watchdog_rti.h:169
@ Watchdog_DriverState_UNINIT
Driver is uninitialized.
Definition: watchdog_rti.h:205