From 63f235d2c5f6eabeddeffed01d3438030936bac9 Mon Sep 17 00:00:00 2001 From: Borys Jelenski Date: Fri, 5 Mar 2021 17:48:32 +0100 Subject: [PATCH] [EGD-6007] Fix stack usage of SystemWatchdog task Also, task name changed to follow the convention --- module-sys/SystemWatchdog/SystemWatchdog.cpp | 2 +- module-sys/SystemWatchdog/SystemWatchdog.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module-sys/SystemWatchdog/SystemWatchdog.cpp b/module-sys/SystemWatchdog/SystemWatchdog.cpp index 0611e6dfb1cf82cd09273e556f5b8ba10d706c84..12097a22999d1503224e30ea8d8e76512fbd9937 100644 --- a/module-sys/SystemWatchdog/SystemWatchdog.cpp +++ b/module-sys/SystemWatchdog/SystemWatchdog.cpp @@ -12,7 +12,7 @@ namespace sys { using namespace cpp_freertos; - static constexpr uint16_t stackDepthWords = 256; + static constexpr uint16_t stackDepthWords = 64; SystemWatchdog::SystemWatchdog() : Thread(threadName, stackDepthWords, static_cast(ServicePriority::High)) diff --git a/module-sys/SystemWatchdog/SystemWatchdog.hpp b/module-sys/SystemWatchdog/SystemWatchdog.hpp index df399f05651eaf376b64bf271d47bfc5889ed168..56c5d7319ca5938baa3827ac36615c304a5253f2 100644 --- a/module-sys/SystemWatchdog/SystemWatchdog.hpp +++ b/module-sys/SystemWatchdog/SystemWatchdog.hpp @@ -22,7 +22,7 @@ namespace sys class SystemWatchdog : public Watchdog, private cpp_freertos::Thread { public: - static constexpr auto threadName = "System_Watchdog"; + static constexpr auto threadName = "SystemWatchdog"; SystemWatchdog(const SystemWatchdog &) = delete; SystemWatchdog(SystemWatchdog &&) = delete;