FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
task_manager_pre_startup.c
Go to the documentation of this file.
1
22
23// Framework Includes
25#include <tasks_pre_startup.h>
26
27void TM_PreStartup(void)
28{
29 // Immediately ensure that the system is in a Safe State after device reset
31
32 /*
33 * Determine and store the reset reason for later handling. This prevents infinite reset loops
34 * during reset diagnostics and ensures that the actual reset reason is reported instead
35 * of any error injection resets.
36 */
38
39 /*
40 * Perform all error injections that should lead to system resets or have side effects that can
41 * only be cleared by a reset. The FSM state changes with each system reset until reaching the
42 * final state where the function returns normally and the Pre-Startup sequence is complete.
43 */
45}
void T_DetermineResetReason(void)
Determines the reason for the last device reset and stores it for later handling.
void T_RunResetDiagnosticFsm(void)
Implements an FSM for performing error injection diagnostics leading to device resets.
void T_EnsureSafeState(void)
Ensures the device is in a Safe State by making sure io pins are floated.
void TM_PreStartup(void)
Manages safety system Pre-startup Tasks.