foxBMS - Unit Tests
1.2.1
The foxBMS Unit Tests API Documentation
|
Test of the ftask implementation for FreeRTOS. More...
#include "unity.h"
#include "Mockftask_cfg.h"
#include "Mockmpu_prototypes.h"
#include "Mockos.h"
#include "Mocksys_mon.h"
#include "ftask.h"
Go to the source code of this file.
Functions | |
void | helperCreateStatic (const char *pTaskName, TaskHandle_t handleToBeReturned) |
void | setUp (void) |
void | tearDown (void) |
void | testFTSK_CreateTasks (void) |
Variables | |
OS_TASK_DEFINITION_s | ftsk_taskDefinitionEngine |
Task configuration of the engine task. More... | |
OS_TASK_DEFINITION_s | ftsk_taskDefinitionCyclic1ms |
Task configuration of the cyclic 1 ms task. More... | |
OS_TASK_DEFINITION_s | ftsk_taskDefinitionCyclic10ms |
Task configuration of the cyclic 10 ms task. More... | |
OS_TASK_DEFINITION_s | ftsk_taskDefinitionCyclic100ms |
Task configuration of the cyclic 100 ms task. More... | |
OS_TASK_DEFINITION_s | ftsk_taskDefinitionCyclicAlgorithm100ms |
Task configuration of the cyclic 100 ms task for algorithms. More... | |
volatile OS_BOOT_STATE_e | os_boot = OS_OFF |
uint32_t | os_schedulerStartTime = 0u |
Scheduler "zero" time for task phase control. More... | |
Test of the ftask implementation for FreeRTOS.
SPDX-License-Identifier: BSD-3-Clause
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
We kindly request you to use one or more of the following phrases to refer to foxBMS in your hardware, software, documentation or advertising materials:
Definition in file test_ftask_freertos.c.
void helperCreateStatic | ( | const char * | pTaskName, |
TaskHandle_t | handleToBeReturned | ||
) |
helper function that sets up everything for the test in testFTSK_CreateTasks()
Definition at line 103 of file test_ftask_freertos.c.
void setUp | ( | void | ) |
Definition at line 114 of file test_ftask_freertos.c.
void tearDown | ( | void | ) |
Definition at line 117 of file test_ftask_freertos.c.
void testFTSK_CreateTasks | ( | void | ) |
test correct task creation
Definition at line 122 of file test_ftask_freertos.c.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclic100ms |
Task configuration of the cyclic 100 ms task.
Cyclic 100 ms task
Definition at line 84 of file test_ftask_freertos.c.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclic10ms |
Task configuration of the cyclic 10 ms task.
Cyclic 10 ms task
Definition at line 78 of file test_ftask_freertos.c.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclic1ms |
Task configuration of the cyclic 1 ms task.
Cyclic 1 ms task
Definition at line 72 of file test_ftask_freertos.c.
OS_TASK_DEFINITION_s ftsk_taskDefinitionCyclicAlgorithm100ms |
Task configuration of the cyclic 100 ms task for algorithms.
Cyclic 100 ms task for algorithms
Definition at line 90 of file test_ftask_freertos.c.
OS_TASK_DEFINITION_s ftsk_taskDefinitionEngine |
Task configuration of the engine task.
Task for database and system monitoring
Task configuration of the engine task.
Task is not delayed after the scheduler starts. This task must have the highest priority.
Definition at line 66 of file test_ftask_freertos.c.
volatile OS_BOOT_STATE_e os_boot = OS_OFF |
boot state of the OS
Definition at line 98 of file test_ftask_freertos.c.
uint32_t os_schedulerStartTime = 0u |
Scheduler "zero" time for task phase control.
timestamp of the scheduler start
Definition at line 100 of file test_ftask_freertos.c.