summaryrefslogtreecommitdiff
path: root/peripherals
diff options
context:
space:
mode:
Diffstat (limited to 'peripherals')
-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