EFM32 Wonder Gecko Software Documentation  efm32wg-doc-5.1.2
efm32wg_wdog.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t CMD;
46  __IM uint32_t SYNCBUSY;
47 } WDOG_TypeDef;
49 /**************************************************************************/
54 /* Bit fields for WDOG CTRL */
55 #define _WDOG_CTRL_RESETVALUE 0x00000F00UL
56 #define _WDOG_CTRL_MASK 0x00003F7FUL
57 #define WDOG_CTRL_EN (0x1UL << 0)
58 #define _WDOG_CTRL_EN_SHIFT 0
59 #define _WDOG_CTRL_EN_MASK 0x1UL
60 #define _WDOG_CTRL_EN_DEFAULT 0x00000000UL
61 #define WDOG_CTRL_EN_DEFAULT (_WDOG_CTRL_EN_DEFAULT << 0)
62 #define WDOG_CTRL_DEBUGRUN (0x1UL << 1)
63 #define _WDOG_CTRL_DEBUGRUN_SHIFT 1
64 #define _WDOG_CTRL_DEBUGRUN_MASK 0x2UL
65 #define _WDOG_CTRL_DEBUGRUN_DEFAULT 0x00000000UL
66 #define WDOG_CTRL_DEBUGRUN_DEFAULT (_WDOG_CTRL_DEBUGRUN_DEFAULT << 1)
67 #define WDOG_CTRL_EM2RUN (0x1UL << 2)
68 #define _WDOG_CTRL_EM2RUN_SHIFT 2
69 #define _WDOG_CTRL_EM2RUN_MASK 0x4UL
70 #define _WDOG_CTRL_EM2RUN_DEFAULT 0x00000000UL
71 #define WDOG_CTRL_EM2RUN_DEFAULT (_WDOG_CTRL_EM2RUN_DEFAULT << 2)
72 #define WDOG_CTRL_EM3RUN (0x1UL << 3)
73 #define _WDOG_CTRL_EM3RUN_SHIFT 3
74 #define _WDOG_CTRL_EM3RUN_MASK 0x8UL
75 #define _WDOG_CTRL_EM3RUN_DEFAULT 0x00000000UL
76 #define WDOG_CTRL_EM3RUN_DEFAULT (_WDOG_CTRL_EM3RUN_DEFAULT << 3)
77 #define WDOG_CTRL_LOCK (0x1UL << 4)
78 #define _WDOG_CTRL_LOCK_SHIFT 4
79 #define _WDOG_CTRL_LOCK_MASK 0x10UL
80 #define _WDOG_CTRL_LOCK_DEFAULT 0x00000000UL
81 #define WDOG_CTRL_LOCK_DEFAULT (_WDOG_CTRL_LOCK_DEFAULT << 4)
82 #define WDOG_CTRL_EM4BLOCK (0x1UL << 5)
83 #define _WDOG_CTRL_EM4BLOCK_SHIFT 5
84 #define _WDOG_CTRL_EM4BLOCK_MASK 0x20UL
85 #define _WDOG_CTRL_EM4BLOCK_DEFAULT 0x00000000UL
86 #define WDOG_CTRL_EM4BLOCK_DEFAULT (_WDOG_CTRL_EM4BLOCK_DEFAULT << 5)
87 #define WDOG_CTRL_SWOSCBLOCK (0x1UL << 6)
88 #define _WDOG_CTRL_SWOSCBLOCK_SHIFT 6
89 #define _WDOG_CTRL_SWOSCBLOCK_MASK 0x40UL
90 #define _WDOG_CTRL_SWOSCBLOCK_DEFAULT 0x00000000UL
91 #define WDOG_CTRL_SWOSCBLOCK_DEFAULT (_WDOG_CTRL_SWOSCBLOCK_DEFAULT << 6)
92 #define _WDOG_CTRL_PERSEL_SHIFT 8
93 #define _WDOG_CTRL_PERSEL_MASK 0xF00UL
94 #define _WDOG_CTRL_PERSEL_DEFAULT 0x0000000FUL
95 #define WDOG_CTRL_PERSEL_DEFAULT (_WDOG_CTRL_PERSEL_DEFAULT << 8)
96 #define _WDOG_CTRL_CLKSEL_SHIFT 12
97 #define _WDOG_CTRL_CLKSEL_MASK 0x3000UL
98 #define _WDOG_CTRL_CLKSEL_DEFAULT 0x00000000UL
99 #define _WDOG_CTRL_CLKSEL_ULFRCO 0x00000000UL
100 #define _WDOG_CTRL_CLKSEL_LFRCO 0x00000001UL
101 #define _WDOG_CTRL_CLKSEL_LFXO 0x00000002UL
102 #define WDOG_CTRL_CLKSEL_DEFAULT (_WDOG_CTRL_CLKSEL_DEFAULT << 12)
103 #define WDOG_CTRL_CLKSEL_ULFRCO (_WDOG_CTRL_CLKSEL_ULFRCO << 12)
104 #define WDOG_CTRL_CLKSEL_LFRCO (_WDOG_CTRL_CLKSEL_LFRCO << 12)
105 #define WDOG_CTRL_CLKSEL_LFXO (_WDOG_CTRL_CLKSEL_LFXO << 12)
107 /* Bit fields for WDOG CMD */
108 #define _WDOG_CMD_RESETVALUE 0x00000000UL
109 #define _WDOG_CMD_MASK 0x00000001UL
110 #define WDOG_CMD_CLEAR (0x1UL << 0)
111 #define _WDOG_CMD_CLEAR_SHIFT 0
112 #define _WDOG_CMD_CLEAR_MASK 0x1UL
113 #define _WDOG_CMD_CLEAR_DEFAULT 0x00000000UL
114 #define _WDOG_CMD_CLEAR_UNCHANGED 0x00000000UL
115 #define _WDOG_CMD_CLEAR_CLEARED 0x00000001UL
116 #define WDOG_CMD_CLEAR_DEFAULT (_WDOG_CMD_CLEAR_DEFAULT << 0)
117 #define WDOG_CMD_CLEAR_UNCHANGED (_WDOG_CMD_CLEAR_UNCHANGED << 0)
118 #define WDOG_CMD_CLEAR_CLEARED (_WDOG_CMD_CLEAR_CLEARED << 0)
120 /* Bit fields for WDOG SYNCBUSY */
121 #define _WDOG_SYNCBUSY_RESETVALUE 0x00000000UL
122 #define _WDOG_SYNCBUSY_MASK 0x00000003UL
123 #define WDOG_SYNCBUSY_CTRL (0x1UL << 0)
124 #define _WDOG_SYNCBUSY_CTRL_SHIFT 0
125 #define _WDOG_SYNCBUSY_CTRL_MASK 0x1UL
126 #define _WDOG_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
127 #define WDOG_SYNCBUSY_CTRL_DEFAULT (_WDOG_SYNCBUSY_CTRL_DEFAULT << 0)
128 #define WDOG_SYNCBUSY_CMD (0x1UL << 1)
129 #define _WDOG_SYNCBUSY_CMD_SHIFT 1
130 #define _WDOG_SYNCBUSY_CMD_MASK 0x2UL
131 #define _WDOG_SYNCBUSY_CMD_DEFAULT 0x00000000UL
132 #define WDOG_SYNCBUSY_CMD_DEFAULT (_WDOG_SYNCBUSY_CMD_DEFAULT << 1)
__IOM uint32_t CTRL
Definition: efm32wg_wdog.h:43
__IOM uint32_t CMD
Definition: efm32wg_wdog.h:44
__IM uint32_t SYNCBUSY
Definition: efm32wg_wdog.h:46