1.30.12.1 1.31.12.1 1.33.12.1 1.37.12.1 PM_ResetCauseGet Function

C

PM_RESET_CAUSE PM_ResetCauseGet (void);

Summary

Reports the cause of the last reset

Description

This function is used to know the cause of the last reset.

Precondition

None.

Parameters

None.

Returns

PM_RESET_CAUSE - Identifies cause of reset, either General, Backup, Watchdog, Software or User Reset

Example

if (PM_RESET_CAUSE_WDT_RESET == PM_ResetCauseGet ())
{
    //Application related tasks
}

Remarks

None.