FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
main_example.h File Reference

Defines configurations used in main_example.c. More...

#include <stdbool.h>
#include <stddef.h>
#include <define_schedule_entry.h>
#include <tasks_config.h>
#include <tasks_scheduler.h>
#include <tasks_shared.h>
#include <tasks_startup.h>

Go to the source code of this file.

Macros

#define STARTUP_SCHEDULE_LEN   3U
 Configures the schedule length of the example Application Startup Schedule.
#define SCHEDULE_LEN   3U
 Configures the schedule length of the example Application Schedule.
#define DUR_UNTIL_NEXT_SCHEDULE   200UL
 Configures the duration in system clock cycles until the first Task in the next example Application schedule is run, after completing the last Task in the previous one.

Variables

static const scheduleEntry_t appStartupSchedule [STARTUP_SCHEDULE_LEN]
 Defines an example Application Startup Schedule with optional Tasks.
static const scheduleEntry_t appSchedule [SCHEDULE_LEN]
 Defines an example Application Schedule with optional Tasks.
static const scheduleEntry_t appShutdownTask
 Defines an example Application Shutdown Task schedule entry.

Detailed Description

Defines configurations used in main_example.c.

Warning
This file is not intended to be included in multiple translation units, doing so will create multiple copies of the schedule arrays, which is not recommended. They are only placed here to make the example clearer.

Definition in file main_example.h.