PDK API Guide for J721E
wd_timer.h File Reference

Introduction

Watchdog timer APIs and macros.

This file contains the driver API prototypes and macro definitions.

Go to the source code of this file.

Macros

Values that can be passed to WDTIMERPreScalerClkEnable API as ptv.
#define WD_TIMER_PRESCALER_CLK_DIV_1   (uint32_t) (0x00000000U)
 
#define WD_TIMER_PRESCALER_CLK_DIV_2   (uint32_t) (0x00000004U)
 
#define WD_TIMER_PRESCALER_CLK_DIV_4   (uint32_t) (0x00000008U)
 
#define WD_TIMER_PRESCALER_CLK_DIV_8   (uint32_t) (0x0000000CU)
 
#define WD_TIMER_PRESCALER_CLK_DIV_16   (uint32_t) (0x00000010U)
 
#define WD_TIMER_PRESCALER_CLK_DIV_32   (uint32_t) (0x00000014U)
 
#define WD_TIMER_PRESCALER_CLK_DIV_64   (uint32_t) (0x00000018U)
 
#define WD_TIMER_PRESCALER_CLK_DIV_128   (uint32_t) (0x0000001CU)
 
#define WD_TIMER_INT_DELAY   (WD_TIMER_WIRQSTATRAW_EVENT_DLY_MASK)
 Values that can be passed to WDTIMERIntRawStatusSet, WDTIMERIntStatusClear APIs as intFlags. More...
 
#define WD_TIMER_INT_OVERFLOW   (WD_TIMER_WIRQSTATRAW_EVENT_OVF_MASK)
 
#define WD_TIMER_INT_ALL
 
#define WD_TIMER_INT_ENABLE_DELAY   (WD_TIMER_WIRQENSET_ENABLE_DLY_MASK)
 values passed to WDTIMERIntEnable as intFlags. More...
 
#define WD_TIMER_INT_ENABLE_OVRFLW   (WD_TIMER_WIRQENSET_ENABLE_OVF_MASK)
 
#define WD_TIMER_INT_ENABLE_ALL
 
#define WD_TIMER_INT_DISABLE_DELAY   (WD_TIMER_WIRQENCLR_ENABLE_DLY_MASK)
 Values passed to WDTIMERIntDisable as intFlags. More...
 
#define WD_TIMER_INT_DISABLE_OVRFLW   (WD_TIMER_WIRQENCLR_ENABLE_OVF_MASK)
 
#define WD_TIMER_INT_DISABLE_ALL
 
#define WD_TIMER_WRITE_PENDING_WCLR   ((uint32_t) WD_TIMER_WWPS_W_PEND_WCLR_MASK)
 Values to read the status of WDTIMERWritePostedStatusGet API. More...
 
#define WD_TIMER_WRITE_PENDING_WCRR   ((uint32_t) WD_TIMER_WWPS_W_PEND_WCRR_MASK)
 
#define WD_TIMER_WRITE_PENDING_WLDR   ((uint32_t) WD_TIMER_WWPS_W_PEND_WLDR_MASK)
 
#define WD_TIMER_WRITE_PENDING_WTGR   ((uint32_t) WD_TIMER_WWPS_W_PEND_WTGR_MASK)
 
#define WD_TIMER_WRITE_PENDING_WSPR   ((uint32_t) WD_TIMER_WWPS_W_PEND_WSPR_MASK)
 
#define WD_TIMER_WRITE_PENDING_WDLY   ((uint32_t) WD_TIMER_WWPS_W_PEND_WDLY_MASK)
 

Functions

void WDTIMEREnable (uint32_t baseAddr)
 Starts/Enables the watchdog timer. More...
 
void WDTIMERDisable (uint32_t baseAddr)
 Stops/Disables the watchdog timer. More...
 
uint32_t WDTIMERRevisionIDGet (uint32_t baseAddr)
 Return the revision id of the SOC used. More...
 
void WDTIMERReset (uint32_t baseAddr)
 Reset the watchdog timer module. More...
 
void WDTIMERPreScalerClkEnable (uint32_t baseAddr, uint32_t ptv)
 This API will configure and enable the pre-scaler clock. More...
 
void WDTIMERPreScalerClkDisable (uint32_t baseAddr)
 This API will disable the pre-scaler clock. More...
 
void WDTIMERCounterSet (uint32_t baseAddr, uint32_t countVal)
 Set/Write the Counter register with the counter value. More...
 
uint32_t WDTIMERCounterGet (uint32_t baseAddr)
 Get/Read the counter value from the counter register. More...
 
void WDTIMERReloadSet (uint32_t baseAddr, uint32_t reloadVal)
 Set the reload count value in the Watchdog timer load register. More...
 
uint32_t WDTIMERReloadGet (uint32_t baseAddr)
 Get the reload count value from the Watchdog timer load register. More...
 
void WDTIMERTriggerSet (uint32_t baseAddr, uint32_t trigVal)
 Set/enable the trigger write access. More...
 
void WDTIMERDelaySet (uint32_t baseAddr, uint32_t delayVal)
 Load the delay register of Watchdog timer with the delay value. More...
 
uint32_t WDTIMERDelayGet (uint32_t baseAddr)
 Return the delay register value of Watchdog timer. More...
 
void WDTIMERIntRawStatusSet (uint32_t baseAddr, uint32_t intFlags)
 Set IRQ status by software. More...
 
uint32_t WDTIMERIntRawStatusGet (uint32_t baseAddr)
 Return the Raw IRQ status. More...
 
uint32_t WDTIMERIntStatusGet (uint32_t baseAddr)
 Read the status of WD_TIMER_WIRQSTAT register. More...
 
void WDTIMERIntStatusClear (uint32_t baseAddr, uint32_t intFlags)
 Clear IRQ status. More...
 
void WDTIMERIntEnable (uint32_t baseAddr, uint32_t intFlags)
 Enable Watchdog timer interrupts. More...
 
uint32_t WDTIMERIntEnableStatusGet (uint32_t baseAddr)
 Used to check whether interrupts of Watchdog timer are enabled or disabled. More...
 
void WDTIMERIntDisable (uint32_t baseAddr, uint32_t intFlags)
 Disable Watchdog timer interrupts. More...
 
uint32_t WDTIMERWritePostedStatusGet (uint32_t baseAddr, uint32_t flags)
 Read the status of WD_TIMER_WWPS register. More...