55 #ifndef FOXBMS__FTASK_CFG_H_
56 #define FOXBMS__FTASK_CFG_H_
65 #define FTSK_TASK_ENGINE_STACK_SIZE_IN_BYTES (1024u)
68 #define FTSK_TASK_ENGINE_PRIORITY (OS_PRIORITY_REAL_TIME)
71 #define FTSK_TASK_ENGINE_PHASE (0u)
74 #define FTSK_TASK_ENGINE_CYCLE_TIME (1u)
77 #define FTSK_TASK_ENGINE_MAXIMUM_JITTER (1u)
80 #define FTSK_TASK_ENGINE_PV_PARAMETERS (NULL_PTR)
83 #define FTSK_TASK_CYCLIC_1MS_STACK_SIZE_IN_BYTES (1024u)
86 #define FTSK_TASK_CYCLIC_1MS_PRIORITY (OS_PRIORITY_ABOVE_HIGH)
89 #define FTSK_TASK_CYCLIC_1MS_PHASE (0u)
92 #define FTSK_TASK_CYCLIC_1MS_CYCLE_TIME (1u)
95 #define FTSK_TASK_CYCLIC_1MS_MAXIMUM_JITTER (1u)
98 #define FTSK_TASK_CYCLIC_1MS_PV_PARAMETERS (NULL_PTR)
101 #define FTSK_TASK_CYCLIC_10MS_STACK_SIZE_IN_BYTES (5120u)
104 #define FTSK_TASK_CYCLIC_10MS_PRIORITY (OS_PRIORITY_HIGH)
107 #define FTSK_TASK_CYCLIC_10MS_PHASE (2u)
110 #define FTSK_TASK_CYCLIC_10MS_CYCLE_TIME (10u)
113 #define FTSK_TASK_CYCLIC_10MS_MAXIMUM_JITTER (2u)
116 #define FTSK_TASK_CYCLIC_10MS_PV_PARAMETERS (NULL_PTR)
119 #define FTSK_TASK_CYCLIC_100MS_STACK_SIZE_IN_BYTES (1024u)
122 #define FTSK_TASK_CYCLIC_100MS_PRIORITY (OS_PRIORITY_ABOVE_NORMAL)
125 #define FTSK_TASK_CYCLIC_100MS_PHASE (56u)
128 #define FTSK_TASK_CYCLIC_100MS_CYCLE_TIME (100u)
131 #define FTSK_TASK_CYCLIC_100MS_MAXIMUM_JITTER (5u)
134 #define FTSK_TASK_CYCLIC_100MS_PV_PARAMETERS (NULL_PTR)
137 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_STACK_SIZE_IN_BYTES (1024u)
140 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_PRIORITY (OS_PRIORITY_NORMAL)
143 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_PHASE (64u)
146 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_CYCLE_TIME (100u)
149 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_MAXIMUM_JITTER (5u)
152 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_PV_PARAMETERS (NULL_PTR)
155 #define FTSK_TASK_AFE_STACK_SIZE_IN_BYTES (2048u / 4u)
158 #define FTSK_TASK_AFE_PRIORITY (OS_PRIORITY_ABOVE_HIGH)
161 #define FTSK_TASK_AFE_PHASE (0u)
164 #define FTSK_TASK_AFE_CYCLE_TIME (0u)
167 #define FTSK_TASK_AFE_MAXIMUM_JITTER (5u)
170 #define FTSK_TASK_AFE_PV_PARAMETERS (NULL_PTR)
OS_TASK_DEFINITION_s ftsk_taskDefinitionAfe
Task configuration of the continuously running task for AFEs.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclic100ms
Task configuration of the cyclic 100 ms task.
void FTSK_RunUserCodeAfe(void)
Continuously running task for AFEs.
void FTSK_InitializeUserCodeEngine(void)
Initializes the database.
void FTSK_RunUserCodeEngine(void)
Engine task for the database and the system monitoring module.
OS_TASK_DEFINITION_s ftsk_taskDefinitionEngine
Task configuration of the engine task.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclic1ms
Task configuration of the cyclic 1 ms task.
void FTSK_RunUserCodeIdle(void)
Idle task.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclicAlgorithm100ms
Task configuration of the cyclic 100 ms task for algorithms.
void FTSK_RunUserCodeCyclic100ms(void)
Cyclic 100 ms task.
void FTSK_InitializeUserCodePreCyclicTasks(void)
Initialization function before all tasks started.
void FTSK_RunUserCodeCyclic10ms(void)
Cyclic 10 ms task.
TaskHandle_t ftsk_taskHandleAfe
Definition of task handles.
void FTSK_RunUserCodeCyclic1ms(void)
Cyclic 1 ms task.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclic10ms
Task configuration of the cyclic 10 ms task.
void FTSK_RunUserCodeCyclicAlgorithm100ms(void)
Cyclic 100 ms task for algorithms.
General macros and definitions for the whole platform.
Declaration of the OS wrapper interface.
struct for FreeRTOS task definition