Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-06-03 23:02:19 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-06-03 23:02:19 +0300
commit6200d42e0254e91112baf62abef1c533c8fe95f5 (patch)
treed032f79c81aa89894df010729a90b538250ea02b
parente5438fe8e622e6316356249c15634028bd4382f8 (diff)
Move SBC task priority to TaskPriorities
-rw-r--r--src/Linux/LinuxInterface.cpp2
-rw-r--r--src/Platform/TaskPriorities.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Linux/LinuxInterface.cpp b/src/Linux/LinuxInterface.cpp
index 598ddaef..db9a4a30 100644
--- a/src/Linux/LinuxInterface.cpp
+++ b/src/Linux/LinuxInterface.cpp
@@ -69,7 +69,7 @@ void LinuxInterface::Init() noexcept
transfer.Init();
sbcTask = new Task<SBCTaskStackWords>;
- sbcTask->Create(SBCTaskStart, "SBC", nullptr, TaskPriority::SpinPriority);
+ sbcTask->Create(SBCTaskStart, "SBC", nullptr, TaskPriority::SbcPriority);
iapRamAvailable = &_estack - Tasks::GetHeapTop();
}
diff --git a/src/Platform/TaskPriorities.h b/src/Platform/TaskPriorities.h
index cc9ab004..b65f1568 100644
--- a/src/Platform/TaskPriorities.h
+++ b/src/Platform/TaskPriorities.h
@@ -13,6 +13,9 @@ namespace TaskPriority
{
constexpr int IdlePriority = 0;
constexpr int SpinPriority = 1; // priority for tasks that rarely block
+#if HAS_LINUX_INTERFACE
+ constexpr int SbcPriority = 1; // priority for SBC task
+#endif
#if defined(LPC_NETWORKING)
constexpr int TcpPriority = 2;
//EMAC priority = 3 defined in FreeRTOSIPConfig.h