![]() |
AVR SD Safety Framework 1.0.0
|
Contains API prototypes and type definitions for the Reset Manager. More...
Files | |
| file | midware_reset_manager.c |
| Implements APIs for the Reset Manager. | |
| file | midware_reset_manager.h |
| Contains API prototypes and type definitions for the Reset Manager. | |
| file | define_reset_reason.h |
| Defines the reset reason type for all possible reset sources. | |
Enumerations | |
| enum | resetReason_t |
| Type defines for all possible reset sources. More... | |
Functions | |
| void | MW_ResetDevice (void) |
| Issues a software reset request to reset the device. | |
| resetReason_t | MW_GetClearResetReason (void) |
| Reads and clears the reset flag registers. | |
Contains API prototypes and type definitions for the Reset Manager.
The Reset Manager provides services to Tasks to ensure correct interaction with features of the RSTCTRL peripheral.
| enum resetReason_t |
Type defines for all possible reset sources.
| resetReason_t MW_GetClearResetReason | ( | void | ) |
Reads and clears the reset flag registers.
This function reads and clears reset flags to determine the last device reset reason. This is done by reporting the first found reset flag from MSb to LSb. If the flag indicates a Machine Check Reset, an Error Controller Reset or a Watchdog Timer Reset, the additional cause information of this type of reset is checked and reported.
If multiple resets have occurred without clearing the flags, the first identified reason is reported and all flags are cleared.
| void MW_ResetDevice | ( | void | ) |
Issues a software reset request to reset the device.
If this function returns, it means that the device reset failed. It is assumed that this is handled by the calling function.