Jump to main content

##

# 2.84.9 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.