From: henryk@ploetzli.ch Date: Tue, 1 Sep 2009 05:00:33 +0000 (+0000) Subject: Add defines for reset type X-Git-Tag: v1.0.0~495 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/d5d42c0a4bb26d573e04c0c6466db1ea2d6202b4 Add defines for reset type --- diff --git a/include/at91sam7s128.h b/include/at91sam7s128.h index 1142b209..854fae89 100644 --- a/include/at91sam7s128.h +++ b/include/at91sam7s128.h @@ -34,9 +34,17 @@ #define RSTC_BASE (0xfffffd00) #define RSTC_CONTROL REG(RSTC_BASE+0x00) +#define RSTC_STATUS REG(RSTC_BASE+0x04) #define RST_CONTROL_KEY (0xa5<<24) #define RST_CONTROL_PROCESSOR_RESET (1<<0) +#define RST_STATUS_TYPE_MASK (7<<8) +#define RST_STATUS_TYPE_POWERUP (0<<8) +#define RST_STATUS_TYPE_WATCHDOG (2<<8) +#define RST_STATUS_TYPE_SOFTWARE (3<<8) +#define RST_STATUS_TYPE_USER (4<<8) +#define RST_STATUS_TYPE_BROWNOUT (5<<8) + //------------- // PWM Controller