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:
authorChristian Hammacher <bmasterc@gmail.com>2021-09-27 13:07:00 +0300
committerChristian Hammacher <bmasterc@gmail.com>2021-09-27 13:07:00 +0300
commit130708fda5628013cbf83d33d031345ed1b90a37 (patch)
tree37f526f01ebc2cf2cd7115de4d506566350c2ed0 /src/Platform
parentc006deccbb21f48c7ece8c496dfd492c2ba739a2 (diff)
RRF manages filaments again in SBC mode
Diffstat (limited to 'src/Platform')
-rw-r--r--src/Platform/Tasks.cpp7
-rw-r--r--src/Platform/Tasks.h1
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;
}