utils/cmsis/same70/include/component/wdt.h
Go to the documentation of this file.
1 
31 /*
32  * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
33  */
34 
35 #ifndef _SAME70_WDT_COMPONENT_
36 #define _SAME70_WDT_COMPONENT_
37 
38 /* ============================================================================= */
40 /* ============================================================================= */
43 
44 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
45 
46 typedef struct {
47  __O uint32_t WDT_CR;
48  __IO uint32_t WDT_MR;
49  __I uint32_t WDT_SR;
50 } Wdt;
51 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
52 /* -------- WDT_CR : (WDT Offset: 0x00) Control Register -------- */
53 #define WDT_CR_WDRSTT (0x1u << 0)
54 #define WDT_CR_KEY_Pos 24
55 #define WDT_CR_KEY_Msk (0xffu << WDT_CR_KEY_Pos)
56 #define WDT_CR_KEY(value) ((WDT_CR_KEY_Msk & ((value) << WDT_CR_KEY_Pos)))
57 #define WDT_CR_KEY_PASSWD (0xA5u << 24)
58 /* -------- WDT_MR : (WDT Offset: 0x04) Mode Register -------- */
59 #define WDT_MR_WDV_Pos 0
60 #define WDT_MR_WDV_Msk (0xfffu << WDT_MR_WDV_Pos)
61 #define WDT_MR_WDV(value) ((WDT_MR_WDV_Msk & ((value) << WDT_MR_WDV_Pos)))
62 #define WDT_MR_WDFIEN (0x1u << 12)
63 #define WDT_MR_WDRSTEN (0x1u << 13)
64 #define WDT_MR_WDDIS (0x1u << 15)
65 #define WDT_MR_WDD_Pos 16
66 #define WDT_MR_WDD_Msk (0xfffu << WDT_MR_WDD_Pos)
67 #define WDT_MR_WDD(value) ((WDT_MR_WDD_Msk & ((value) << WDT_MR_WDD_Pos)))
68 #define WDT_MR_WDDBGHLT (0x1u << 28)
69 #define WDT_MR_WDIDLEHLT (0x1u << 29)
70 /* -------- WDT_SR : (WDT Offset: 0x08) Status Register -------- */
71 #define WDT_SR_WDUNF (0x1u << 0)
72 #define WDT_SR_WDERR (0x1u << 1)
75 
76 
77 #endif /* _SAME70_WDT_COMPONENT_ */
__I uint32_t WDT_SR
(Wdt Offset: 0x08) Status Register
#define __IO
Definition: core_cm7.h:266
#define __O
Definition: core_cm7.h:265
__IO uint32_t WDT_MR
(Wdt Offset: 0x04) Mode Register
__O uint32_t WDT_CR
(Wdt Offset: 0x00) Control Register
Wdt hardware registers.
#define __I
Definition: core_cm7.h:263


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05