summaryrefslogtreecommitdiff
path: root/peripherals/rstc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-01-08 15:07:26 +0100
committerHarald Welte <laforge@gnumonks.org>2012-01-08 15:07:26 +0100
commite236846cf9227f848b78ef167e07b72a62010bdb (patch)
tree49c1eefbfa95e5f536861c488a32d56a2f98eca5 /peripherals/rstc
parent48b70deff51f8a4dcc7011bc8a73e02f9fe987de (diff)
RSTC_GetStatus() returns unsigned long, not unsigned char !
Diffstat (limited to 'peripherals/rstc')
-rw-r--r--peripherals/rstc/rstc.c2
-rw-r--r--peripherals/rstc/rstc.h1
2 files changed, 2 insertions, 1 deletions
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
personal git repositories of Harald Welte. Your mileage may vary