FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
main_example.c File Reference
#include <stdbool.h>
#include <stdlib.h>
#include <define_memory_sections.h>
#include <main_example.h>
#include <task_manager_interrupts.h>
#include <task_manager_pre_startup.h>
#include <task_manager_scheduler.h>
#include <task_manager_shutdown.h>
#include <task_manager_startup.h>
#include <tasks_config.h>
#include <avr/interrupt.h>
#include <xc.h>

Go to the source code of this file.

Functions

static void INIT3_SECTION PreMain (void)
 Runs the Pre-startup Task Manager before entering Main.
int main (void)
 Runs the Startup, Scheduler and optionally Shutdown Task Managers.
 ISR_BADISR_vect ()
 Runs the Interrupts Task Manager to handle interrupt requests without a dedicated ISR.
 ISR_NMI_vect ()
 Runs the Interrupts Task Manager to handle a Non-maskable Interrupt (NMI).
 ISR_BOD_VLM_vect ()
 Runs the Interrupts Task Manager to handle a Brown-out Detector (BOD) interrupt.
 ISR_ERRCTRL_INT_vect ()
 Runs the Interrupts Task Manager to handle a Error Controller (ERRCTRL) channel interrupt.
 ISR_CLKCTRL_INT_vect ()
 Runs the Interrupts Task Manager to handle a Clock Controller (CLKCTRL) interrupt.
 ISR_SLPCTRL_INT_vect ()
 Runs the Interrupts Task Manager to handle a Sleep Controller (SLPCTRL) interrupt.
 ISR_SWDT_INT_vect ()
 Runs the Interrupts Task Manager to handle a Synchronous Watchdog Timer (SWDT) interrupt.
 ISR_NVMCTRL_ERROR_vect ()
 Runs the Interrupts Task Manager to handle a NVM Controller (NVMCTRL) error interrupt.
 ISR_RAMCTRL_INT_vect ()
 Runs the Interrupts Task Manager to handle a RAM Controller (RAMCTRL) error interrupt.
 ISR_CRCSCAN_INT_vect ()
 Runs the Interrupts Task Manager to handle a CRC Scan (CRCSCAN) interrupt.

Variables

 FUSES
 Sets a Framework compatible User Fuses configuration.
 LOCKBITS = LOCKBITS_DEFAULT
 Sets a Memory Sections Access Protection (Lock) Configuration.
bool suspendScheduler = false
 Defines an example boolean for the Application to optionally start the Shutdown sequence.