]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Add defines for reset type
authorhenryk@ploetzli.ch <henryk@ploetzli.ch@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 1 Sep 2009 05:00:33 +0000 (05:00 +0000)
committerhenryk@ploetzli.ch <henryk@ploetzli.ch@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 1 Sep 2009 05:00:33 +0000 (05:00 +0000)
include/at91sam7s128.h

index 1142b20932c27ed233cd020bc6f470462a32a2b5..854fae89995264f0711b36a1e8bed7d09998a22e 100644 (file)
 #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
+#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
Impressum, Datenschutz