![]() |
FuSa 8-Bit Libraries Safety Framework
|
Defines type for Task scheduling. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | scheduleEntry_t |
| Defines a schedule entry containing a task function pointer and its duration. More... | |
Typedefs | |
| typedef void(* | task_t) (void) |
| Defines a function pointer type for tasks. | |
Defines type for Task scheduling.
Definition in file define_schedule_entry.h.
| typedef void(* task_t) (void) |
Defines a function pointer type for tasks.
This type represents a function pointer to a task in the Task_layer intended for scheduling. Each task is a self-contained decision-maker that utilizes services provided by the Middleware_layer to interact with hardware resources and takes no inputs.
The function pointer is deliberately defined without input parameters to enhance simplicity and promote functional safety. This design avoids the use of void pointers, which necessitate type casting and could undermine type safety. Instead, task-specific configurations are implemented using predefined macros, thereby ensuring both type safety and reliability in task operations.
Definition at line 41 of file define_schedule_entry.h.