mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Refactoring: Scalability and performance (#252)
Refactoring v5.7 step 1
This commit is contained in:
parent
5a5cfc433b
commit
ffa7a54f20
77 changed files with 926 additions and 286 deletions
43
Software/src/system_settings.h
Normal file
43
Software/src/system_settings.h
Normal file
|
@ -0,0 +1,43 @@
|
|||
#ifndef SYSTEM_SETTINGS_H_
|
||||
#define SYSTEM_SETTINGS_H_
|
||||
/** TASKS
|
||||
*
|
||||
* Parameter: TASK_CORE_PRIO
|
||||
* Description:
|
||||
* Defines the priority of core functionality (CAN, Modbus, etc)
|
||||
*
|
||||
* Parameter: TASK_CONNECTIVITY_PRIO
|
||||
* Description:
|
||||
* Defines the priority of various wireless functionality (TCP, MQTT, etc)
|
||||
*/
|
||||
#define TASK_CORE_PRIO 4
|
||||
#define TASK_WIFI_PRIO 3
|
||||
#define TASK_MODBUS_PRIO 8
|
||||
|
||||
/** MAX AMOUNT OF CELLS
|
||||
*
|
||||
* Parameter: MAX_AMOUNT_CELLS
|
||||
* Description:
|
||||
* Basically the length of the array used to hold individual cell voltages
|
||||
*/
|
||||
#define MAX_AMOUNT_CELLS 192
|
||||
|
||||
/** LED
|
||||
*
|
||||
* Parameter: LED_MODE_DEFAULT
|
||||
* Description:
|
||||
* The default LED mode. Available modes:
|
||||
* CLASSIC - slow up/down ramp
|
||||
* FLOW - slow ramp up or down depending on flow of energy
|
||||
* HEARTBEAT - Heartbeat-like LED pattern that reacts to the system state with color and BPM
|
||||
*
|
||||
* Parameter: LED_PERIOD_MS
|
||||
* Description:
|
||||
* The period of whatever LED mode is active. If CLASSIC, then a ramp up and ramp down will finish in
|
||||
* LED_PERIOD_MS milliseconds
|
||||
*/
|
||||
#define LED_MODE_DEFAULT FLOW
|
||||
#define LED_PERIOD_MS 3000
|
||||
#define LED_EXECUTION_FREQUENCY 50
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue