diff Lib/mk20dx.h @ 177:3420e018ffbc

Adding McHCK flash reload function and some cleanup. - Requires special string to be compared with the bootloader and VBAT register file
author Jacob Alexander <haata@kiibohd.com>
date Sat, 19 Jul 2014 09:21:35 -0700
parents 7962a42dbda0
children 50702debf278
line wrap: on
line diff
--- a/Lib/mk20dx.h	Sun Jun 22 20:45:56 2014 -0700
+++ b/Lib/mk20dx.h	Sat Jul 19 09:21:35 2014 -0700
@@ -1957,6 +1957,9 @@
 #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);