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. ***/
#define WDT_CTL_WTRE_Pos
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
Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
#define WDT_CTL_WTWKE_Pos
#define WDT
Pointer to WDT register structure.
#define WDT_CTL_WTE_Msk