From e236846cf9227f848b78ef167e07b72a62010bdb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 8 Jan 2012 15:07:26 +0100 Subject: RSTC_GetStatus() returns unsigned long, not unsigned char ! --- peripherals/rstc/rstc.c | 2 +- peripherals/rstc/rstc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/peripherals/rstc/rstc.c b/peripherals/rstc/rstc.c index 7f6ceca..eeccd4b 100644 --- a/peripherals/rstc/rstc.c +++ b/peripherals/rstc/rstc.c @@ -170,7 +170,7 @@ unsigned char RSTC_IsBusy(void) //----------------------------------------------------------------------------- /// Get the status //----------------------------------------------------------------------------- -unsigned char RSTC_GetStatus(void) +unsigned long RSTC_GetStatus(void) { return (AT91C_BASE_RSTC->RSTC_RSR); } diff --git a/peripherals/rstc/rstc.h b/peripherals/rstc/rstc.h index d3dbb16..76312e1 100644 --- a/peripherals/rstc/rstc.h +++ b/peripherals/rstc/rstc.h @@ -54,5 +54,6 @@ extern unsigned char RSTC_IsUserResetDetected(void); extern unsigned char RSTC_IsBusy(void); +extern unsigned long RSTC_GetStatus(void); #endif // #ifndef _RSTC_H -- cgit v1.2.3