| Nano100BN Series BSP V3.03.002 The Board Support Package for Nano100BN Series

wdt.c
Go to the documentation of this file.
1 /**************************************************************************/
12 #include "Nano100Series.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 | u32ResetDelay | WDT_CTL_WTE_Msk |
54 (u32EnableReset << WDT_CTL_WTRE_Pos) |
55 (u32EnableWakeup << WDT_CTL_WTWKE_Pos);
56 return;
57 }
58
59 /* end of group NANO100_WDT_EXPORTED_FUNCTIONS */
61 /* end of group NANO100_WDT_Driver */
63 /* end of group NANO100_Device_Driver */
65
66 /*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/
WDT_CTL_WTRE_Pos
#define WDT_CTL_WTRE_Pos
Definition: Nano100Series.h:11431
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
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:11434
WDT
#define WDT
Pointer to WDT register structure.
Definition: Nano100Series.h:11666
WDT_CTL_WTE_Msk
#define WDT_CTL_WTE_Msk
Definition: Nano100Series.h:11438