AVR SD Safety Framework 1.0.0
Loading...
Searching...
No Matches
tasks_shutdown.c File Reference

Implements APIs for Shutdown Tasks. More...

#include <stdbool.h>
#include <stdint.h>
#include <define_error_flags.h>
#include <define_error_ids.h>
#include <define_tasks_configs.h>
#include <error_handler.h>
#include <midware_checksum_manager.h>
#include <midware_checksum_manager_diag.h>
#include <midware_clock_manager.h>
#include <midware_error_manager.h>
#include <midware_interrupt_manager.h>
#include <midware_memory_manager.h>
#include <midware_power_manager.h>
#include <midware_reset_manager.h>
#include <midware_watchdog_manager.h>
#include <tasks_config.h>
#include <tasks_shutdown.h>

Macros

#define SWDT_WINDOW_MAX   0xFFFFU
 Defines max value for the 16-bit SWDT window register.

Functions

void T_VerifyFlashIntegrity (void)
 Verifies Flash integrity by running a CRCSCAN on all enabled Flash sections.
void T_InitSafeShutdown (void)
 Initializes and prepares the system for safe entry into shutdown sleep modes.
void T_EnterShutdownSleep (void)
 Enters device sleep in either Standby or Power-Down mode depending on the configuration.
void T_HandleShutdownWatchdogs (void)
 Clears both the Watchdog Timer (WDT) and Synchronous Watchdog Timer (SWDT).
void T_RestartDevice (void)
 Restarts the device as part of the shutdown exit sequence.

Detailed Description

Implements APIs for Shutdown Tasks.