![]() |
AVR SD Safety Framework 1.0.0
|
Contains API prototype for Startup Tasks callback example. More...
Files | |
| file | tasks_startup_callbacks_example.c |
| Implements API for Startup Tasks callback example. | |
| file | tasks_startup_callbacks_example.h |
| Contains API prototype for Startup Tasks callback example. | |
Functions | |
| void | T_ResetReasonExampleCallback (resetInfo_t resetInfo) |
| Placeholder implementation of a Handle Reset Reason callback function. | |
Contains API prototype for Startup Tasks callback example.
| void T_ResetReasonExampleCallback | ( | resetInfo_t | resetInfo | ) |
Placeholder implementation of a Handle Reset Reason callback function.
The example implementation is intentionally left empty, as the appropriate handling is highly application specific and would require initialization of peripherals such as USART or a debug print interface before use.
This callback can be called by T_HandleResetReason for application-specific reset handling. Possible uses include:
| resetInfo | A structure containing the Reset Reason as determined in T_DetermineResetReason and the software reset Error ID as determined in EH_InitiateSafeState. The values are validated in T_HandleResetReason before the callback is called. |
An application-specific Reset Reason handling callback should be implemented for proper reset handling.