![]() |
FuSa 8-Bit Libraries Safety Framework
|
Contains API prototypes for the Shutdown Task Manager. More...
Files | |
| file | task_manager_shutdown.c |
| Implements APIs for the Shutdown Task Manager. | |
Functions | |
| void | TM_ShutdownExit (void) |
| Requests the Shutdown Task Manager to exit the Shutdown sequence with a device reset. | |
| void | TM_Shutdown (const scheduleEntry_t appShutdownTask) |
| Manages Tasks that ensure safe execution of device sleeping in Standby and Power-Down. | |
Contains API prototypes for the Shutdown Task Manager.
The Shutdown Task Manager is responsible for executing the Shutdown sequence to safely enter deep sleep modes (Standby and Power-Down).
| void TM_Shutdown | ( | const scheduleEntry_t | appShutdownTask | ) |
Manages Tasks that ensure safe execution of device sleeping in Standby and Power-Down.
SUBJECT TO CHANGE: the planned functionality for this Task Manager is to ensure a safe transition into deeper sleep modes (Standby and Power-Down). This is planned to be achieved by first calling the provided Task that should handle application-specific shutdown procedures (such as sending a message to a higher ranking system or disabling peripherals and external components) and enabling a periodic wakeup source, e.g. the Periodic Interrupt Timer (PIT). The Shutdown procedure will continue with a transition into the Safe State by floating all I/O pins on the device, re-configure the timeout of the Watchdogs (typically longer timeouts to be able to sleep longer intervals) and initiate the selected sleep mode. Before entering sleep, an optional CRCSCAN of Flash can be initiated using the Idle sleep mode. Each time the device wakes up, the Watchdogs are handled before going back to sleep. Once an application-specific interrupt handler calls TM_ShutdownExit API, the Shutdown procedure will end by issuing a device reset.
| appShutdownTask | Callback to application-specific Shutdown Task with the expected duration. |
Definition at line 30 of file task_manager_shutdown.c.
| void TM_ShutdownExit | ( | void | ) |
Requests the Shutdown Task Manager to exit the Shutdown sequence with a device reset.
Definition at line 25 of file task_manager_shutdown.c.