RSTC_GetStatus() returns unsigned long, not unsigned char !

This commit is contained in:
Harald Welte 2012-01-08 15:07:26 +01:00
parent 48b70deff5
commit e236846cf9
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}

View File

@ -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