55 #ifndef FOXBMS__FTASK_CFG_H_
56 #define FOXBMS__FTASK_CFG_H_
66 #define FTSK_TASK_ENGINE_STACK_SIZE_IN_BYTES (1024u)
69 #define FTSK_TASK_ENGINE_PRIORITY (OS_PRIORITY_REAL_TIME)
72 #define FTSK_TASK_ENGINE_PHASE (0u)
75 #define FTSK_TASK_ENGINE_CYCLE_TIME (1u)
78 #define FTSK_TASK_ENGINE_MAXIMUM_JITTER (1u)
81 #define FTSK_TASK_ENGINE_PV_PARAMETERS (NULL_PTR)
84 #define FTSK_TASK_CYCLIC_1MS_STACK_SIZE_IN_BYTES (1024u)
87 #define FTSK_TASK_CYCLIC_1MS_PRIORITY (OS_PRIORITY_VERY_HIGH)
90 #define FTSK_TASK_CYCLIC_1MS_PHASE (0u)
93 #define FTSK_TASK_CYCLIC_1MS_CYCLE_TIME (1u)
96 #define FTSK_TASK_CYCLIC_1MS_MAXIMUM_JITTER (1u)
99 #define FTSK_TASK_CYCLIC_1MS_PV_PARAMETERS (NULL_PTR)
102 #define FTSK_TASK_CYCLIC_10MS_STACK_SIZE_IN_BYTES (5120u)
105 #define FTSK_TASK_CYCLIC_10MS_PRIORITY (OS_PRIORITY_HIGH)
108 #define FTSK_TASK_CYCLIC_10MS_PHASE (2u)
111 #define FTSK_TASK_CYCLIC_10MS_CYCLE_TIME (10u)
114 #define FTSK_TASK_CYCLIC_10MS_MAXIMUM_JITTER (2u)
117 #define FTSK_TASK_CYCLIC_10MS_PV_PARAMETERS (NULL_PTR)
120 #define FTSK_TASK_CYCLIC_100MS_STACK_SIZE_IN_BYTES (1024u)
123 #define FTSK_TASK_CYCLIC_100MS_PRIORITY (OS_PRIORITY_ABOVE_NORMAL)
126 #define FTSK_TASK_CYCLIC_100MS_PHASE (56u)
129 #define FTSK_TASK_CYCLIC_100MS_CYCLE_TIME (100u)
132 #define FTSK_TASK_CYCLIC_100MS_MAXIMUM_JITTER (5u)
135 #define FTSK_TASK_CYCLIC_100MS_PV_PARAMETERS (NULL_PTR)
138 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_STACK_SIZE_IN_BYTES (1024u)
141 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_PRIORITY (OS_PRIORITY_NORMAL)
144 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_PHASE (64u)
147 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_CYCLE_TIME (100u)
150 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_MAXIMUM_JITTER (5u)
153 #define FTSK_TASK_CYCLIC_ALGORITHM_100MS_PV_PARAMETERS (NULL_PTR)
156 #define FTSK_TASK_I2C_STACK_SIZE_IN_BYTES (2048u)
159 #define FTSK_TASK_I2C_PRIORITY (FTSK_TASK_CYCLIC_10MS_PRIORITY)
162 #define FTSK_TASK_I2C_PHASE (0u)
165 #define FTSK_TASK_I2C_CYCLE_TIME (0u)
168 #define FTSK_TASK_I2C_PV_PARAMETERS (NULL_PTR)
171 #define FTSK_TASK_AFE_STACK_SIZE_IN_BYTES (4096u)
174 #define FTSK_TASK_AFE_PRIORITY (OS_PRIORITY_ABOVE_HIGH)
177 #define FTSK_TASK_AFE_PHASE (0u)
180 #define FTSK_TASK_AFE_CYCLE_TIME (0u)
183 #define FTSK_TASK_AFE_PV_PARAMETERS (NULL_PTR)
311 #ifdef UNITY_UNIT_TEST
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.
TaskHandle_t ftsk_taskHandleI2c
Definition of task handles.
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_RunUserCodeI2c(void)
Continuously running task for I2C.
void FTSK_InitializeUserCodePreCyclicTasks(void)
Initialization function before all tasks started.
void FTSK_RunUserCodeCyclic10ms(void)
Cyclic 10 ms task.
OS_TASK_DEFINITION_s ftsk_taskDefinitionI2c
Task configuration of the continuously running task for MCU I2C communication.
OS_TASK_HANDLE 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.
Declaration of the OS wrapper interface.
struct for FreeRTOS task definition