mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Add task priority setting for CAN addons
This commit is contained in:
parent
53b0e1a623
commit
bcfb41e82e
3 changed files with 15 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
//----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
#include "ACAN2517FD.h"
|
||||
#include "../../system_settings.h" //Contains task priority
|
||||
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -506,7 +507,7 @@ uint32_t ACAN2517FD::begin (const ACAN2517FDSettings & inSettings,
|
|||
}
|
||||
}
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
xTaskCreate (myESP32Task, "ACAN2517Handler", 1024, this, 256, &mESP32TaskHandle) ;
|
||||
xTaskCreate (myESP32Task, "ACAN2517Handler", 1024, this, TASK_ACAN2517FD_PRIORITY, &mESP32TaskHandle) ;
|
||||
#endif
|
||||
if (mINT != 255) { // 255 means interrupt is not used
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
//··································································································
|
||||
|
||||
#include "ACAN2515.h"
|
||||
#include "../../system_settings.h" //Contains task priority
|
||||
|
||||
//··································································································
|
||||
// MCP2515 COMMANDS
|
||||
|
@ -225,7 +226,7 @@ uint16_t ACAN2515::beginWithoutFilterCheck (const ACAN2515Settings & inSettings,
|
|||
#endif
|
||||
}
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
xTaskCreate (myESP32Task, "ACAN2515Handler", 1024, this, 256, NULL) ;
|
||||
xTaskCreate (myESP32Task, "ACAN2515Handler", 1024, this, TASK_ACAN2515_PRIORITY, NULL) ;
|
||||
#endif
|
||||
}
|
||||
//----------------------------------- Return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue