![]() |
TLE986x Device Family SDK
|
Go to the source code of this file.
Window Watchdog 1 low level access library.
Macros | |
#define | One_us ((uint32)SCU_FSYS / 1000000u) |
#define | SysTickRL ((uint32)SCU_FSYS / (uint32)SysTickFreq) |
#define | SysTickFreq 1000u |
SysTick 1kHz. More... | |
Functions | |
void | WDT1_Init (void) |
Performs the initial service of the WDT1 (closes the long open window). More... | |
void | SysTick_Init (void) |
Initializes the SysTick timer to 1ms interval. More... | |
void | WDT1_Stop (void) |
Stops the service of WDT1 by stopping the SysTick timer. More... | |
bool | WDT1_Service (void) |
Services the WDT1 in the open window. More... | |
void | WDT1_SOW_Service (uint32 NoOfSOW) |
Triggers a short-window (~30ms) of the WDT1. More... | |
void | Delay_us (uint32 delay_time_us) |
Delays the regular program execution by a given number of Microseconds. More... | |
INLINE void | WDT1_Window_Count (void) |
increments the WDT1 Window Counter More... | |
INLINE uint32 | SysTick_Value_Get (void) |
returns the current SysTick timer count value More... | |
INLINE void | SysTick_ReloadValue_Set (uint32 val) |
sets the SysTick Reload value More... | |
INLINE uint32 | SysTick_ReloadValue_Get (void) |
returns the current SysTick reload value More... | |
Variables | |
uint32 | WD_Counter |
#define One_us ((uint32)SCU_FSYS / 1000000u) |
#define SysTickFreq 1000u |
SysTick 1kHz.
#define SysTickRL ((uint32)SCU_FSYS / (uint32)SysTickFreq) |
void Delay_us | ( | uint32 | delay_time_us | ) |
Delays the regular program execution by a given number of Microseconds.
the function returns if the given time has elapsed
smaller Microsecond delay times are getting falsen by the execution time
of the function itself
delay_time_us | Delay time in Microseconds |
Example
This example sets a delay of 100 us.
void SysTick_Init | ( | void | ) |
Initializes the SysTick timer to 1ms interval.
and enables the SysTick interrupt.
returns the current SysTick reload value
Example
This example reads the current SysTick reload value
sets the SysTick Reload value
val | reload value for SysTick timer |
Example
This example sets the current SysTick reload to Max value.
returns the current SysTick timer count value
Example
This example reads the current SysTick timer count value
void WDT1_Init | ( | void | ) |
Performs the initial service of the WDT1 (closes the long open window).
Resets the WD_Counter to '0'.
bool WDT1_Service | ( | void | ) |
Services the WDT1 in the open window.
TRUE | WDT1 serviced |
FALSE | WDT1 was not serviced (not in open window) |
Example
This example services the WDT1.
void WDT1_SOW_Service | ( | uint32 | NoOfSOW | ) |
Triggers a short-window (~30ms) of the WDT1.
NoOfSOW | number of consecutive Short open windows allowed |
Example
This example sets one successive Short Open Window to be allowed and triggers a SOW.
void WDT1_Stop | ( | void | ) |
Stops the service of WDT1 by stopping the SysTick timer.
Example
This example Stops the WDT1.
INLINE void WDT1_Window_Count | ( | void | ) |
increments the WDT1 Window Counter
Example
This example increments the WDT1 Window Counter.
uint32 WD_Counter |