diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-06-03 23:02:19 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-06-03 23:02:19 +0300 |
commit | 6200d42e0254e91112baf62abef1c533c8fe95f5 (patch) | |
tree | d032f79c81aa89894df010729a90b538250ea02b | |
parent | e5438fe8e622e6316356249c15634028bd4382f8 (diff) |
Move SBC task priority to TaskPriorities
-rw-r--r-- | src/Linux/LinuxInterface.cpp | 2 | ||||
-rw-r--r-- | src/Platform/TaskPriorities.h | 3 |
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 |