RSTC_GetStatus() returns unsigned long, not unsigned char !
This commit is contained in:
parent
48b70deff5
commit
e236846cf9
|
@ -170,7 +170,7 @@ unsigned char RSTC_IsBusy(void)
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
/// Get the status
|
/// Get the status
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
unsigned char RSTC_GetStatus(void)
|
unsigned long RSTC_GetStatus(void)
|
||||||
{
|
{
|
||||||
return (AT91C_BASE_RSTC->RSTC_RSR);
|
return (AT91C_BASE_RSTC->RSTC_RSR);
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,5 +54,6 @@ extern unsigned char RSTC_IsUserResetDetected(void);
|
||||||
|
|
||||||
extern unsigned char RSTC_IsBusy(void);
|
extern unsigned char RSTC_IsBusy(void);
|
||||||
|
|
||||||
|
extern unsigned long RSTC_GetStatus(void);
|
||||||
|
|
||||||
#endif // #ifndef _RSTC_H
|
#endif // #ifndef _RSTC_H
|
||||||
|
|
Loading…
Reference in New Issue