FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
tasks_shared.c File Reference

Implements APIs for Tasks shared between several Task Managers. More...

#include <stdbool.h>
#include <stdint.h>
#include <define_error_criticality.h>
#include <define_error_flags.h>
#include <define_error_ids.h>
#include <error_handler.h>
#include <error_handler_config.h>
#include <midware_watchdog_manager.h>
#include <midware_watchdog_manager_diag.h>
#include <tasks_config.h>
#include <tasks_shared.h>
#include <tasks_shared_private.h>

Go to the source code of this file.

Functions

void T_HandleNotificationErrors (void)
 Ensures Error IDs with 'NOTIFICATION' criticality are handled.
void T_HandleSyncWatchdog (uint32_t newTimeout)
 Waits until the current Synchronous Watchdog timeout is completed before clearing and setting the next timeout.

  • This function handles the Synchronous Watchdog Timer (SWDT) by pre-clearing and clearing it in the correctly timed sequence, and setting a new timeout period value. By this, the SWDT is restarted with a new initial counter value. It is also responsible for executing the optional MW_DiagSwdtCount diagnostic, if enabled compile-time. See DIAG_PERIODIC_SWDT_COUNT for more details. Any detected diagnostic faults and input parameter errors are reported to the Error Handler.

void T_HandleWatchdog (void)
 Clears the Watchdog Timer (WDT) while performing the WDT count diagnostic.

Detailed Description

Implements APIs for Tasks shared between several Task Managers.

Definition in file tasks_shared.c.