M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
Macros | Functions
wwdt.h File Reference

M471M/R1/S WWDT driver header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WWDT_PRESCALER_1   (0 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_2   (1 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_4   (2 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_8   (3 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_16   (4 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_32   (5 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_64   (6 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_128   (7 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_192   (8 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_256   (9 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_384   (10 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_512   (11 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_768   (12 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_1024   (13 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_1536   (14 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_PRESCALER_2048   (15 << WWDT_CTL_PSCSEL_Pos)
 
#define WWDT_RELOAD_WORD   (0x00005AA5)
 
#define WWDT_CLEAR_RESET_FLAG()   (WWDT->STATUS = (WWDT->STATUS & ~WWDT_STATUS_WWDTIF_Msk) | WWDT_STATUS_WWDTRF_Msk)
 Clear WWDT Reset System Flag. More...
 
#define WWDT_CLEAR_INT_FLAG()   (WWDT->STATUS = (WWDT->STATUS & ~WWDT_STATUS_WWDTRF_Msk) | WWDT_STATUS_WWDTIF_Msk)
 Clear WWDT Compared Match Interrupt Flag. More...
 
#define WWDT_GET_RESET_FLAG()   ((WWDT->STATUS & WWDT_STATUS_WWDTRF_Msk)? 1 : 0)
 Get WWDT Reset System Flag. More...
 
#define WWDT_GET_INT_FLAG()   ((WWDT->STATUS & WWDT_STATUS_WWDTIF_Msk)? 1 : 0)
 Get WWDT Compared Match Interrupt Flag. More...
 
#define WWDT_GET_COUNTER()   (WWDT->CNT)
 Get WWDT Counter. More...
 
#define WWDT_RELOAD_COUNTER()   (WWDT->RLDCNT = WWDT_RELOAD_WORD)
 Reload WWDT Counter. More...
 

Functions

void WWDT_Open (uint32_t u32PreScale, uint32_t u32CmpValue, uint32_t u32EnableInt)
 Open WWDT and start counting. More...
 

Detailed Description

M471M/R1/S WWDT driver header file.

SPDX-License-Identifier: Apache-2.0

Definition in file wwdt.h.