diff options
author | Christian Hammacher <bmasterc@gmail.com> | 2021-09-27 13:07:00 +0300 |
---|---|---|
committer | Christian Hammacher <bmasterc@gmail.com> | 2021-09-27 13:07:00 +0300 |
commit | 130708fda5628013cbf83d33d031345ed1b90a37 (patch) | |
tree | 37f526f01ebc2cf2cd7115de4d506566350c2ed0 /src/Platform | |
parent | c006deccbb21f48c7ece8c496dfd492c2ba739a2 (diff) |
RRF manages filaments again in SBC mode
Diffstat (limited to 'src/Platform')
-rw-r--r-- | src/Platform/Tasks.cpp | 7 | ||||
-rw-r--r-- | src/Platform/Tasks.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/Platform/Tasks.cpp b/src/Platform/Tasks.cpp index 73e8d943..6cd12a2d 100644 --- a/src/Platform/Tasks.cpp +++ b/src/Platform/Tasks.cpp @@ -84,7 +84,6 @@ extern "C" void vApplicationGetTimerTaskMemory(StaticTask_t **ppxTimerTaskTCBBuf // Mutexes static Mutex i2cMutex; static Mutex mallocMutex; -static Mutex filamentsMutex; // We need to make malloc/free thread safe. We must use a recursive mutex for it. extern "C" void GetMallocMutex() noexcept @@ -225,7 +224,6 @@ void *Tasks::GetNVMBuffer(const uint32_t *stk) noexcept // Create the mutexes and the startup task mallocMutex.Create("Malloc"); i2cMutex.Create("I2C"); - filamentsMutex.Create("Filaments"); mainTask.Create(MainTask, "MAIN", nullptr, TaskPriority::SpinPriority); StepTimer::Init(); // initialise the step pulse timer now because we use it for measuring task CPU usage @@ -399,11 +397,6 @@ Mutex *Tasks::GetI2CMutex() noexcept return &i2cMutex; } -Mutex *Tasks::GetFilamentsMutex() noexcept -{ - return &filamentsMutex; -} - // This intercepts the 1ms system tick extern "C" void vApplicationTickHook() noexcept { diff --git a/src/Platform/Tasks.h b/src/Platform/Tasks.h index f3f8b878..8d9c3ae4 100644 --- a/src/Platform/Tasks.h +++ b/src/Platform/Tasks.h @@ -20,7 +20,6 @@ namespace Tasks void *AllocPermanent(size_t sz, std::align_val_t align = (std::align_val_t)__STDCPP_DEFAULT_NEW_ALIGNMENT__) noexcept; const char* GetHeapTop() noexcept; Mutex *GetI2CMutex() noexcept; - Mutex *GetFilamentsMutex() noexcept; void *GetNVMBuffer(const uint32_t *stk) noexcept; } |