Nut/OS  4.10.3
API Reference
System Reset

System reset. More...

Collaboration diagram for System Reset:

Defines

#define NUT_RSTTYP_UNKNOWN   0
#define NUT_RSTTYP_POWERUP   1
#define NUT_RSTTYP_WATCHDOG   2
#define NUT_RSTTYP_EXTERNAL   3
#define NUT_RSTTYP_SOFTWARE   4
#define NUT_RSTTYP_BROWNOUT   5

Functions

void NutReset (void)
 System reset.
int NutResetCause (void)
 Retrieve the cause of the last system reset.

Detailed Description

System reset.

Platform independent system reset.


Define Documentation

#define NUT_RSTTYP_UNKNOWN   0

Definition at line 54 of file reset.h.

Referenced by At91ResetCause(), Avr32ResetCause(), and NutResetCause().

#define NUT_RSTTYP_POWERUP   1

Definition at line 55 of file reset.h.

Referenced by At91ResetCause(), and Avr32ResetCause().

#define NUT_RSTTYP_WATCHDOG   2

Definition at line 56 of file reset.h.

Referenced by At91ResetCause(), and Avr32ResetCause().

#define NUT_RSTTYP_EXTERNAL   3

Definition at line 57 of file reset.h.

Referenced by At91ResetCause(), and Avr32ResetCause().

#define NUT_RSTTYP_SOFTWARE   4

Definition at line 58 of file reset.h.

Referenced by At91ResetCause().

#define NUT_RSTTYP_BROWNOUT   5

Definition at line 59 of file reset.h.

Referenced by At91ResetCause(), and Avr32ResetCause().


Function Documentation

void NutReset ( void  )

System reset.

Typically this function will not return. If it does, then the reset failed or the function is not supported.

Examples:
tcps/tcps.c.

Definition at line 53 of file reset.c.

References At91Reset(), Avr32Reset(), and AvrWatchDogStart().

Here is the call graph for this function:

int NutResetCause ( void  )

Retrieve the cause of the last system reset.

Not implemented, always returns NUT_RSTTYP_UNKNOWN.

Returns:
Reset type.

Definition at line 74 of file reset.c.

References At91ResetCause(), Avr32ResetCause(), and NUT_RSTTYP_UNKNOWN.

Here is the call graph for this function: