| NUC472_NUC442_BSP V3.03.003 The Board Support Package for NUC472/NUC442

wdt.c
Go to the documentation of this file.
1/**************************************************************************/
12#include "NUC472_442.h"
13
47 void WDT_Open(uint32_t u32TimeoutInterval,
48 uint32_t u32ResetDelay,
49 uint32_t u32EnableReset,
50 uint32_t u32EnableWakeup)
51{
52
53 WDT->CTL = u32TimeoutInterval | WDT_CTL_WDTEN_Msk |
54 (u32EnableReset << WDT_CTL_RSTEN_Pos) |
55 (u32EnableWakeup << WDT_CTL_WKEN_Pos);
56 WDT->ALTCTL = u32ResetDelay;
57 return;
58}
59
60 /* end of group NUC472_442_WDT_EXPORTED_FUNCTIONS */
62 /* end of group NUC472_442_WDT_Driver */
64 /* end of group NUC472_442_Device_Driver */
66
67/*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/
NUC472_442.h
NUC472/NUC442 peripheral access layer header file. This file contains all the peripheral register's d...
WDT_CTL_WDTEN_Msk
#define WDT_CTL_WDTEN_Msk
Definition: NUC472_442.h:28545
WDT_CTL_WKEN_Pos
#define WDT_CTL_WKEN_Pos
Definition: NUC472_442.h:28535
WDT_CTL_RSTEN_Pos
#define WDT_CTL_RSTEN_Pos
Definition: NUC472_442.h:28526
WDT
#define WDT
Definition: NUC472_442.h:28826
WDT_Open
void WDT_Open(uint32_t u32TimeoutInterval, uint32_t u32ResetDelay, uint32_t u32EnableReset, uint32_t u32EnableWakeup)
This function make WDT module start counting with different time-out interval.
Definition: wdt.c:47