|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
58 #include "stream_buffer.h"
141 (
const portCHAR *)
"FTSK_TaskCreatorEngine",
153 (
const portCHAR *)
"FTSK_TaskCreatorCyclic1ms",
165 (
const portCHAR *)
"FTSK_TaskCreatorCyclic10ms",
177 (
const portCHAR *)
"FTSK_TaskCreatorCyclic100ms",
189 (
const portCHAR *)
"FTSK_TaskCreator_Cyclic_Algorithm_100ms",
206 #pragma TASK(FTSK_TaskCreatorEngine)
233 #pragma TASK(FTSK_TaskCreatorCyclic1ms)
235 uint32_t current_time = 0;
266 #pragma TASK(FTSK_TaskCreatorCyclic10ms)
268 uint32_t current_time = 0;
296 #pragma TASK(FTSK_TaskCreatorCyclic100ms)
298 uint32_t current_time = 0;
327 #pragma TASK(FTSK_TaskCreatorCyclicAlgorithm100ms)
329 uint32_t current_time = 0;
static StackType_t ftsk_stackSizeCyclic1ms[FTSK_TSK_CYCLIC_1MS_STACK_SIZE]
Stack of ftsk_taskHandleCyclic1ms.
#define FTSK_TSK_CYCLIC_ALGORITHM_100MS_STACKSIZE
Stack size of cyclic 100 ms task for algorithms.
static StaticTask_t ftsk_taskStructCyclic1ms
Task Struct for ftsk_taskHandleCyclic1ms.
static TaskHandle_t ftsk_taskHandleCyclic10ms
Definition of task handle for the cyclic 10 ms task.
void FTSK_UserCodeCyclic100ms(void)
Cyclic 100 ms task.
void FTSK_UserCodeEngine(void)
Engine task for the database and the system monitoring module.
void OS_DelayTaskUntil(uint32_t *pPreviousWakeTime, uint32_t milliseconds)
Delay a task until a specified time.
void FTSK_UserCodeEngineInit(void)
Initializes the database.
static StaticTask_t ftsk_taskStructCyclic10ms
Task Struct for ftsk_taskHandleCyclic10ms.
static void FTSK_TaskCreatorCyclic10ms(void)
Creation of cyclic 10 ms engine task.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclic100ms
Task configuration of the cyclic 100 ms task.
void FTSK_UserCodeCyclic10ms(void)
Cyclic 10 ms task.
void FTSK_UserCodeCyclicAlgorithm100ms(void)
Cyclic 100 ms task for algorithms.
static StackType_t ftsk_stackSizeCyclic100ms[FTSK_TSK_CYCLIC_100MS_STACK_SIZE]
Stack of ftsk_taskHandleCyclic100ms.
uint32_t os_schedulerStartTime
Scheduler "zero" time for task phase control.
static StaticTask_t ftsk_taskStructCyclic100ms
Task Struct for ftsk_taskHandleCyclic100ms.
static StackType_t ftsk_stackSizeCyclicAlgorithm100ms[FTSK_TSK_CYCLIC_ALGORITHM_100MS_STACKSIZE]
Stack of ftsk_taskHandleCyclicAlgorithm100ms.
#define FTSK_TSK_CYCLIC_100MS_STACK_SIZE
Stack size of cyclic 100 ms task.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclic1ms
Task configuration of the cyclic 1 ms task.
static void FTSK_TaskCreatorCyclicAlgorithm100ms(void)
Creation of cyclic 100 ms algorithm task.
OS_TASK_DEFINITION_s ftsk_taskDefinitionEngine
Definition of the engine task.
void FTSK_CreateEvents(void)
Creates all events of the group.
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
uint32_t OS_GetTickCount(void)
Returns OS based system tick value.
static void FTSK_TaskCreatorCyclic1ms(void)
Creation of cyclic 1 ms engine task.
@ SYSM_TASK_ID_CYCLIC_100ms
Header of task driver implementation.
void FTSK_CreateMutexes(void)
Creates all mutexes.
@ SYSM_TASK_ID_CYCLIC_10ms
static StaticTask_t ftsk_taskStructCyclicAlgorithm100ms
Task Struct for ftsk_taskHandleCyclicAlgorithm100ms.
static StackType_t ftsk_stackSizeEngine[FTSK_TSK_ENGINE_STACK_SIZE]
Stack of ftsk_taskHandleEngine.
static TaskHandle_t ftsk_taskHandleCyclicAlgorithm100ms
Definition of task handle for the cyclic 100 ms task for algorithms.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclicAlgorithm100ms
Task configuration of the cyclic 100 ms task for algorithms.
#define FTSK_TSK_CYCLIC_1MS_STACK_SIZE
Stack size of cyclic 1 ms task.
static TaskHandle_t ftsk_taskHandleCyclic1ms
Definition of task handle for the cyclic 1 ms task.
@ SYSM_TASK_ID_CYCLIC_1ms
static TaskHandle_t ftsk_taskHandleEngine
Definition of task handle of the engine task.
@ OS_PRECYCLIC_INIT_HAS_FINISHED
static StackType_t ftsk_stackSizeCyclic10ms[FTSK_TSK_CYCLIC_10MS_STACK_SIZE]
Stack of ftsk_taskHandleCyclic10ms.
#define FTSK_TSK_CYCLIC_10MS_STACK_SIZE
Stack size of cyclic 10 ms task.
static StaticTask_t ftsk_taskStructEngine
Task Struct for ftsk_taskHandleEngine.
void FTSK_UserCodePreCyclicTasksInitialization(void)
Initialization function before all tasks started.
volatile OS_BOOT_STATE_e os_boot
static TaskHandle_t ftsk_taskHandleCyclic100ms
Definition of task handle for the cyclic 100 ms task.
void FTSK_UserCodeCyclic1ms(void)
Cyclic 1 ms task.
void FTSK_CreateTasks(void)
Creates all tasks of the group.
static void FTSK_TaskCreatorEngine(void)
Database-Task.
static void FTSK_TaskCreatorCyclic100ms(void)
Creation of cyclic 100 ms engine task.
void FTSK_CreateQueues(void)
Creates all queues.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclic10ms
Task configuration of the cyclic 10 ms task.
void SYSM_Notify(SYSM_TASK_ID_e tsk_id, SYSM_NOTIFY_TYPE_e state, uint32_t time)
Sets needed bits to indicate that a task is running.
@ SYSM_TASK_ID_CYCLIC_ALGORITHM_100ms
#define FTSK_TSK_ENGINE_STACK_SIZE
Stack size of engine task.