diff options
Diffstat (limited to 'source/monitor.cpp')
-rw-r--r-- | source/monitor.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/monitor.cpp b/source/monitor.cpp index 335a1eb..08a62d5 100644 --- a/source/monitor.cpp +++ b/source/monitor.cpp @@ -14,9 +14,11 @@ #include "error.hpp" #include "runstatus.hpp" -#include "ch.h" #include "hal.h" +__attribute__((section(".stacks"))) +std::array<char, THD_WORKING_AREA_SIZE(256)> Monitor::m_thread_stack = {}; + void Monitor::begin() { chThdCreateStatic(m_thread_stack.data(), @@ -75,6 +77,3 @@ void Monitor::threadMonitor(void *) } } -__attribute__((section(".stacks"))) -std::array<char, 256> Monitor::m_thread_stack = {}; - |