]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Lib/mk20dx.h
Adding McHCK flash reload function and some cleanup.
[kiibohd-controller.git] / Lib / mk20dx.h
index 685161a17b7bbd5030231a00edde69e9591e1e51..9af51a386283569cfeab44e365a7ab825a4f8f0a 100644 (file)
@@ -1957,6 +1957,9 @@ typedef struct {
 #define ARM_DWT_CTRL_CYCCNTENA          (1 << 0)                // Enable cycle count
 #define ARM_DWT_CYCCNT          *(volatile uint32_t *)0xE0001004 // Cycle count register
 
+// Other
+#define VBAT                    *(volatile uint8_t *)0x4003E000 // Register available in all power states
+
 extern int nvic_execution_priority(void);
 
 extern void nmi_isr(void);