Kamcho Library 02.00.03  lib.kamcho.02.00.03.287
Data Structures | Macros | Functions
wdt_sfrs.h File Reference

Go to the source code of this file.

Data Structures

struct  WDT_SFRS_t
 A structure to represent Special Function Registers for WDT. More...
 

Macros

#define WDT_SFRS   ((__IO WDT_SFRS_t *) (TIMER_BASE + 0x18))
 The starting address of WDT SFRS. More...
 
#define WDT_PRES_2PWR13   0
 
#define WDT_PRES_2PWR19   1
 
#define WDT_PRES_2PWR22   2
 
#define WDT_PRES_2PWR32   3
 

Functions

static __INLINE void f_WDT_Enable (void)
 Enable watchdog timer. More...
 
static __INLINE void f_WDT_Disable (void)
 Disable watchdog timer. More...
 
static __INLINE void f_WDT_ResetEnable (void)
 Enable watchdog timer reset. More...
 
static __INLINE void f_WDT_ResetDisable (void)
 Disable watchdog timer reset. More...
 
static __INLINE void f_WDT_SetPrescaler (uint8_t val)
 Select watchdog timer clock pre-scaler. More...
 
static __INLINE void f_WDT_Clear (void)
 Clear watchdog timer. More...
 
static __INLINE uint8_t f_WDT_IsReset (void)
 Check if watchdog timer reset occurred. More...
 

Detailed Description

This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.

Macro Definition Documentation

#define WDT_PRES_2PWR13   0
#define WDT_PRES_2PWR19   1
#define WDT_PRES_2PWR22   2
#define WDT_PRES_2PWR32   3
#define WDT_SFRS   ((__IO WDT_SFRS_t *) (TIMER_BASE + 0x18))

The starting address of WDT SFRS.

Function Documentation

static __INLINE void f_WDT_Clear ( void  )
static

Clear watchdog timer.

static __INLINE void f_WDT_Disable ( void  )
static

Disable watchdog timer.

static __INLINE void f_WDT_Enable ( void  )
static

Enable watchdog timer.

static __INLINE uint8_t f_WDT_IsReset ( void  )
static

Check if watchdog timer reset occurred.

Returns
The watchdog timer reset flag.
static __INLINE void f_WDT_ResetDisable ( void  )
static

Disable watchdog timer reset.

static __INLINE void f_WDT_ResetEnable ( void  )
static

Enable watchdog timer reset.

static __INLINE void f_WDT_SetPrescaler ( uint8_t  val)
static

Select watchdog timer clock pre-scaler.

Parameters
valThe setting of pre-scaler.