From 5c050fc06efc87fbfa61a65801a260d714ffe054 Mon Sep 17 00:00:00 2001 From: dario Date: Wed, 20 Nov 2024 19:34:38 +0100 Subject: [PATCH] Updated default config and removed onManagerInit, onStateMachineInit --- include/sta/tacos/configs/default.hpp | 3 --- src/events.cpp | 2 -- src/startup.cpp | 24 ------------------------ 3 files changed, 29 deletions(-) diff --git a/include/sta/tacos/configs/default.hpp b/include/sta/tacos/configs/default.hpp index bc791bb..543b1d6 100644 --- a/include/sta/tacos/configs/default.hpp +++ b/include/sta/tacos/configs/default.hpp @@ -20,7 +20,4 @@ // State transition message define with highest CAN priority #define STA_TACOS_CAN_BUS_SYS_MSG_ID 0x0 -// TACOS requires system events to start threads -#define STA_RTOS_SYSTEM_EVENTS_ENABLE - #endif // STA_TACOS_CONFIGS_DEFAULT_HPP diff --git a/src/events.cpp b/src/events.cpp index b6a34ff..a68d4c4 100644 --- a/src/events.cpp +++ b/src/events.cpp @@ -9,8 +9,6 @@ namespace { - // Static memory for system events - StaticEventGroup_t systemEventControlBlock; // Event handle sta::RtosEvent * systemEvents = nullptr; } diff --git a/src/startup.cpp b/src/startup.cpp index fddf303..bd3f6d2 100644 --- a/src/startup.cpp +++ b/src/startup.cpp @@ -82,26 +82,6 @@ namespace sta namespace tacos { - /** - * @brief Function that is called before the statemachine task is started. Override it to - * adjust the statemachine to your specifications. Remains in TACOS for backwards compatibility, use startup() instead. - * - * @ingroup tacos_startup - */ - STA_WEAK - void onStatemachineInit() - {} - - /** - * @brief Function that is called before the statemachine task is started. Override it to - * adjust the statemachine to your specifications. Remains in TACOS for backwards compatibility, use startup() instead. - * - * @ingroup tacos_startup - */ - STA_WEAK - void onManagerInit() - {} - /** * @brief Function that is called before the statemachine task is started. It serves as an entry point for the user to * define the threads the statemachine should run. @@ -114,10 +94,6 @@ namespace sta void initStatemachine() { - onStatemachineInit(); - - onManagerInit(); - startup(); Statemachine::instance()->start();