| Nano100AN Series BSP V3.02.002 The Board Support Package for Nano100AN Series

wdt.c
Go to the documentation of this file.
1 /**************************************************************************/
12 #include "Nano100Series.h"
13
43 void WDT_Open(uint32_t u32TimeoutInterval,
44 uint32_t u32ResetDelay,
45 uint32_t u32EnableReset,
46 uint32_t u32EnableWakeup)
47 {
48
49 WDT->CTL = u32TimeoutInterval | u32ResetDelay | WDT_CTL_WTE_Msk |
50 (u32EnableReset << WDT_CTL_WTRE_Pos) |
51 (u32EnableWakeup << WDT_CTL_WTWKE_Pos);
52 return;
53 }
54
55 /* end of group NANO100_WDT_EXPORTED_FUNCTIONS */
57 /* end of group NANO100_WDT_Driver */
59 /* end of group NANO100_Device_Driver */
61
62 /*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/
WDT_CTL_WTRE_Pos
#define WDT_CTL_WTRE_Pos
Definition: Nano100Series.h:10006
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:43
Nano100Series.h
Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
WDT_CTL_WTWKE_Pos
#define WDT_CTL_WTWKE_Pos
Definition: Nano100Series.h:10009
WDT
#define WDT
Pointer to WDT register structure.
Definition: Nano100Series.h:10099
WDT_CTL_WTE_Msk
#define WDT_CTL_WTE_Msk
Definition: Nano100Series.h:10013