Move startup files

This commit is contained in:
Henrik Stickann 2022-05-24 14:02:18 +02:00
parent 160f587ee1
commit 8e4dbe1100
2 changed files with 20 additions and 7 deletions

View File

@ -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 <sta/rtos/system/names.hpp>
/**
* @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

View File

@ -1,9 +1,9 @@
#include <sta/rtos/startup.hpp>
#include <sta/rtos/system/startup.hpp>
#ifdef STA_RTOS_STARTUP_ENABLE
#include <sta/lang.hpp>
#include <sta/rtos/system_event.hpp>
#include <sta/rtos/watchdog.hpp>
#include <sta/rtos/system/system_event.hpp>
#include <sta/rtos/system/watchdog.hpp>
#include <sta/stm32/init.hpp>
#include <cmsis_os2.h>