diff options
| author | Harald Welte <laforge@gnumonks.org> | 2012-01-08 15:07:26 +0100 | 
|---|---|---|
| committer | Harald Welte <laforge@gnumonks.org> | 2012-01-08 15:07:26 +0100 | 
| commit | e236846cf9227f848b78ef167e07b72a62010bdb (patch) | |
| tree | 49c1eefbfa95e5f536861c488a32d56a2f98eca5 | |
| parent | 48b70deff51f8a4dcc7011bc8a73e02f9fe987de (diff) | |
RSTC_GetStatus() returns unsigned long, not unsigned char !
| -rw-r--r-- | peripherals/rstc/rstc.c | 2 | ||||
| -rw-r--r-- | peripherals/rstc/rstc.h | 1 | 
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
  | 
