foxBMS
1.0.0
The foxBMS Battery Management System API Documentation
|
Task configuration header. More...
Go to the source code of this file.
Macros | |
#define | FTSK_TSK_ENGINE_STACK_SIZE (1024u / 4u) |
Stack size of engine task. More... | |
#define | FTSK_TSK_ENGINE_PHASE (0u) |
Phase of engine task. More... | |
#define | FTSK_TSK_ENGINE_CYCLE_TIME (1u) |
Cycle time of engine task. More... | |
#define | FTSK_TSK_ENGINE_MAXIMUM_JITTER (1u) |
Maximum allowed jitter of engine task. More... | |
#define | FTSK_TSK_CYCLIC_1MS_STACK_SIZE (1024u / 4u) |
Stack size of cyclic 1 ms task. More... | |
#define | FTSK_TSK_CYCLIC_1MS_PHASE (0u) |
Phase of cyclic 1ms task. More... | |
#define | FTSK_TSK_CYCLIC_1MS_CYCLE_TIME (1u) |
Cycle time of 1ms task. More... | |
#define | FTSK_TSK_CYCLIC_1MS_MAXIMUM_JITTER (1u) |
Maximum allowed jitter of 1ms task. More... | |
#define | FTSK_TSK_CYCLIC_10MS_STACK_SIZE ((4096u) / 4u) |
Stack size of cyclic 10 ms task. More... | |
#define | FTSK_TSK_CYCLIC_10MS_PHASE (2u) |
Phase of cyclic 10 ms task. More... | |
#define | FTSK_TSK_CYCLIC_10MS_CYCLE_TIME (10u) |
Cycle time of 10 ms task. More... | |
#define | FTSK_TSK_CYCLIC_10MS_MAXIMUM_JITTER (2u) |
Maximum allowed jitter of 10ms task. More... | |
#define | FTSK_TSK_CYCLIC_100MS_STACK_SIZE (1024u / 4u) |
Stack size of cyclic 100 ms task. More... | |
#define | FTSK_TSK_CYCLIC_100MS_PHASE (56u) |
Phase of cyclic 100 ms task. More... | |
#define | FTSK_TSK_CYCLIC_100MS_CYCLE_TIME (100u) |
Cycle time of 100ms task. More... | |
#define | FTSK_TSK_CYCLIC_100MS_MAXIMUM_JITTER (5u) |
Maximum allowed jitter of 100ms task. More... | |
#define | FTSK_TSK_CYCLIC_ALGORITHM_100MS_STACKSIZE (1024u / 4u) |
Stack size of cyclic 100 ms task for algorithms. More... | |
#define | FTSK_TSK_CYCLIC_ALGORITHM_100MS_PHASE (64u) |
Phase of cyclic 100 ms task for algorithms. More... | |
#define | FTSK_TSK_CYCLIC_ALGORITHM_100MS_CYCLE_TIME (100u) |
Cycle time of 100ms task for algorithms. More... | |
#define | FTSK_TSK_CYCLIC_ALGORITHM_100MS_MAXIMUM_JITTER (5u) |
Maximum allowed jitter of 100ms task for algorithms. More... | |
Functions | |
void | FTSK_UserCodeEngineInit (void) |
Initializes the database. More... | |
void | FTSK_UserCodeEngine (void) |
Engine task for the database and the system monitoring module. More... | |
void | FTSK_UserCodePreCyclicTasksInitialization (void) |
Initialization function before all tasks started. More... | |
void | FTSK_UserCodeCyclic1ms (void) |
Cyclic 1 ms task. More... | |
void | FTSK_UserCodeCyclic10ms (void) |
Cyclic 10 ms task. More... | |
void | FTSK_UserCodeCyclic100ms (void) |
Cyclic 100 ms task. More... | |
void | FTSK_UserCodeCyclicAlgorithm100ms (void) |
Cyclic 100 ms task for algorithms. More... | |
void | FTSK_UserCodeIdle (void) |
Idle task. More... | |
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... | |
Task configuration header.
BSD 3-Clause License 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:
″This product uses parts of foxBMS®″
″This product includes parts of foxBMS®″
″This product is derived from foxBMS®″
TODO
Definition in file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_100MS_CYCLE_TIME (100u) |
Cycle time of 100ms task.
Definition at line 106 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_100MS_MAXIMUM_JITTER (5u) |
Maximum allowed jitter of 100ms task.
Definition at line 109 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_100MS_PHASE (56u) |
Phase of cyclic 100 ms task.
Definition at line 103 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_100MS_STACK_SIZE (1024u / 4u) |
Stack size of cyclic 100 ms task.
Definition at line 100 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_10MS_CYCLE_TIME (10u) |
Cycle time of 10 ms task.
Definition at line 94 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_10MS_MAXIMUM_JITTER (2u) |
Maximum allowed jitter of 10ms task.
Definition at line 97 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_10MS_PHASE (2u) |
Phase of cyclic 10 ms task.
Definition at line 91 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_10MS_STACK_SIZE ((4096u) / 4u) |
Stack size of cyclic 10 ms task.
Definition at line 88 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_1MS_CYCLE_TIME (1u) |
Cycle time of 1ms task.
Definition at line 82 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_1MS_MAXIMUM_JITTER (1u) |
Maximum allowed jitter of 1ms task.
Definition at line 85 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_1MS_PHASE (0u) |
Phase of cyclic 1ms task.
Definition at line 79 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_1MS_STACK_SIZE (1024u / 4u) |
Stack size of cyclic 1 ms task.
Definition at line 76 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_ALGORITHM_100MS_CYCLE_TIME (100u) |
Cycle time of 100ms task for algorithms.
Definition at line 118 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_ALGORITHM_100MS_MAXIMUM_JITTER (5u) |
Maximum allowed jitter of 100ms task for algorithms.
Definition at line 121 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_ALGORITHM_100MS_PHASE (64u) |
Phase of cyclic 100 ms task for algorithms.
Definition at line 115 of file ftask_cfg.h.
#define FTSK_TSK_CYCLIC_ALGORITHM_100MS_STACKSIZE (1024u / 4u) |
Stack size of cyclic 100 ms task for algorithms.
Definition at line 112 of file ftask_cfg.h.
#define FTSK_TSK_ENGINE_CYCLE_TIME (1u) |
Cycle time of engine task.
Definition at line 70 of file ftask_cfg.h.
#define FTSK_TSK_ENGINE_MAXIMUM_JITTER (1u) |
Maximum allowed jitter of engine task.
Definition at line 73 of file ftask_cfg.h.
#define FTSK_TSK_ENGINE_PHASE (0u) |
Phase of engine task.
Definition at line 67 of file ftask_cfg.h.
#define FTSK_TSK_ENGINE_STACK_SIZE (1024u / 4u) |
Stack size of engine task.
Definition at line 64 of file ftask_cfg.h.
void FTSK_UserCodeCyclic100ms | ( | void | ) |
Cyclic 100 ms task.
TODO
Definition at line 199 of file ftask_cfg.c.
void FTSK_UserCodeCyclic10ms | ( | void | ) |
Cyclic 10 ms task.
TODO
Definition at line 179 of file ftask_cfg.c.
void FTSK_UserCodeCyclic1ms | ( | void | ) |
Cyclic 1 ms task.
TODO
Definition at line 169 of file ftask_cfg.c.
void FTSK_UserCodeCyclicAlgorithm100ms | ( | void | ) |
Cyclic 100 ms task for algorithms.
TODO
Definition at line 211 of file ftask_cfg.c.
void FTSK_UserCodeEngine | ( | void | ) |
Engine task for the database and the system monitoring module.
Start up after scheduler start. First task to be run, all other tasks only starts when this task has started
Definition at line 136 of file ftask_cfg.c.
void FTSK_UserCodeEngineInit | ( | void | ) |
Initializes the database.
Start up after scheduler starts
Definition at line 115 of file ftask_cfg.c.
void FTSK_UserCodeIdle | ( | void | ) |
Idle task.
Called by vApplicationIdleHook() if configUSE_IDLE_HOOK in FreeRTOSConfig.h is enabled. If you do not need this hook, you can disable it in the FreeRTOS configuration.
Definition at line 220 of file ftask_cfg.c.
void FTSK_UserCodePreCyclicTasksInitialization | ( | void | ) |
Initialization function before all tasks started.
This function is called after the scheduler started but before any cyclic task runs. Here modules get initialized that are not used during the startup process.
Definition at line 145 of file ftask_cfg.c.
|
extern |
Task configuration of the cyclic 100 ms task.
Cyclic 100 ms task
Definition at line 99 of file ftask_cfg.c.
|
extern |
Task configuration of the cyclic 10 ms task.
Cyclic 10 ms task
Definition at line 97 of file ftask_cfg.c.
|
extern |
Task configuration of the cyclic 1 ms task.
Cyclic 1 ms task
Definition at line 95 of file ftask_cfg.c.
|
extern |
Task configuration of the cyclic 100 ms task for algorithms.
Cyclic 100 ms task for algorithms
Definition at line 104 of file ftask_cfg.c.
|
extern |
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 93 of file ftask_cfg.c.