]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - include/at91sam7s128.h
Add defines for reset type
[proxmark3-svn] / include / at91sam7s128.h
index 1142b20932c27ed233cd020bc6f470462a32a2b5..854fae89995264f0711b36a1e8bed7d09998a22e 100644 (file)
 #define RSTC_BASE                                                                      (0xfffffd00)\r
 \r
 #define RSTC_CONTROL                                                           REG(RSTC_BASE+0x00)\r
 #define RSTC_BASE                                                                      (0xfffffd00)\r
 \r
 #define RSTC_CONTROL                                                           REG(RSTC_BASE+0x00)\r
+#define RSTC_STATUS                                                            REG(RSTC_BASE+0x04)\r
 \r
 #define RST_CONTROL_KEY                                                                (0xa5<<24)\r
 #define RST_CONTROL_PROCESSOR_RESET                                    (1<<0)\r
 \r
 #define RST_CONTROL_KEY                                                                (0xa5<<24)\r
 #define RST_CONTROL_PROCESSOR_RESET                                    (1<<0)\r
+#define RST_STATUS_TYPE_MASK                                                   (7<<8)\r
+#define RST_STATUS_TYPE_POWERUP                                                                (0<<8)\r
+#define RST_STATUS_TYPE_WATCHDOG                                                       (2<<8)\r
+#define RST_STATUS_TYPE_SOFTWARE                                                       (3<<8)\r
+#define RST_STATUS_TYPE_USER                                                           (4<<8)\r
+#define RST_STATUS_TYPE_BROWNOUT                                                       (5<<8)\r
+\r
 \r
 //-------------\r
 // PWM Controller\r
 \r
 //-------------\r
 // PWM Controller\r
Impressum, Datenschutz