From 8e4dbe1100b5886f6b28ebaa97adc1f3f11b9ef6 Mon Sep 17 00:00:00 2001 From: Henrik Stickann <4376396-Mithradir@users.noreply.gitlab.com> Date: Tue, 24 May 2022 14:02:18 +0200 Subject: [PATCH] Move startup files --- include/sta/rtos/{ => system}/startup.hpp | 21 +++++++++++++++++---- src/rtos/{ => system}/startup.cpp | 6 +++--- 2 files changed, 20 insertions(+), 7 deletions(-) rename include/sta/rtos/{ => system}/startup.hpp (65%) rename src/rtos/{ => system}/startup.cpp (84%) diff --git a/include/sta/rtos/startup.hpp b/include/sta/rtos/system/startup.hpp similarity index 65% rename from include/sta/rtos/startup.hpp rename to include/sta/rtos/system/startup.hpp index 1b69045..5ae2979 100644 --- a/include/sta/rtos/startup.hpp +++ b/include/sta/rtos/system/startup.hpp @@ -2,8 +2,11 @@ * @file * @brief Implementation of startup system task. */ -#ifndef STA_RTOS_STARTUP_HPP -#define STA_RTOS_STARTUP_HPP +#ifndef STA_RTOS_SYSTEM_STARTUP_HPP +#define STA_RTOS_SYSTEM_STARTUP_HPP + +#include + /** * @defgroup STA_RTOS_Startup Startup task @@ -24,6 +27,16 @@ #endif // DOXYGEN +/** + * @def STA_RTOS_STARTUP_TASK_NAME + * @brief Set name of startup task. + * + * @ingroup STA_RTOS_BuildConfig + */ +#ifndef STA_RTOS_STARTUP_TASK_NAME +# define STA_RTOS_STARTUP_TASK_NAME startup +#endif // !STA_RTOS_STARTUP_TASK_NAME + /** * @def STA_RTOS_STARTUP_ENTRY_FUNCTION * @brief Set name of startup task entry function. @@ -31,7 +44,7 @@ * @ingroup STA_RTOS_BuildConfig */ #ifndef STA_RTOS_STARTUP_ENTRY_FUNCTION -# define STA_RTOS_STARTUP_ENTRY_FUNCTION startupTask +# define STA_RTOS_STARTUP_ENTRY_FUNCTION STA_RTOS_MAKE_ENTRY_NAME(STA_RTOS_STARTUP_TASK_NAME) #endif // !STA_RTOS_STARTUP_ENTRY_FUNCTION @@ -54,4 +67,4 @@ namespace sta #endif // STA_RTOS_STARTUP_ENABLE -#endif // STA_RTOS_STARTUP_HPP +#endif // STA_RTOS_SYSTEM_STARTUP_HPP diff --git a/src/rtos/startup.cpp b/src/rtos/system/startup.cpp similarity index 84% rename from src/rtos/startup.cpp rename to src/rtos/system/startup.cpp index b37b236..dd4647d 100644 --- a/src/rtos/startup.cpp +++ b/src/rtos/system/startup.cpp @@ -1,9 +1,9 @@ -#include +#include #ifdef STA_RTOS_STARTUP_ENABLE #include -#include -#include +#include +#include #include #include