mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-10 18:15:59 +00:00
Move name macros to separate header
This commit is contained in:
parent
5e2296a028
commit
160f587ee1
@ -5,6 +5,9 @@
|
||||
#ifndef STA_RTOS_EASY_CONFIG_HPP
|
||||
#define STA_RTOS_EASY_CONFIG_HPP
|
||||
|
||||
#include <sta/rtos/system/names.hpp>
|
||||
|
||||
|
||||
/**
|
||||
* @defgroup STA_RTOS_EasyConfig Easy Config
|
||||
* @ingroup STA_RTOS_BuildConfig
|
||||
@ -46,13 +49,6 @@
|
||||
#endif // STA_RTOS_EASY_CONFIG_SYSTEM_TASKS_ENABLE
|
||||
|
||||
|
||||
#define _STA_RTOS_CONCAT(a, b) a ## b
|
||||
|
||||
#define STA_RTOS_MAKE_HANDLE_NAME(name) _STA_RTOS_CONCAT(name, Handle)
|
||||
#define STA_RTOS_MAKE_CALLBACK_NAME(name) _STA_RTOS_CONCAT(name, Callback)
|
||||
#define STA_RTOS_MAKE_TASK_NAME(name) _STA_RTOS_CONCAT(name, Task)
|
||||
|
||||
|
||||
#ifdef DOXYGEN
|
||||
/**
|
||||
* @brief Common base name used for watchdog timer handle and callback names.
|
||||
|
12
include/sta/rtos/system/names.hpp
Normal file
12
include/sta/rtos/system/names.hpp
Normal file
@ -0,0 +1,12 @@
|
||||
#ifndef STA_RTOS_SYSTEM_NAMES_HPP
|
||||
#define STA_RTOS_SYSTEM_NAMES_HPP
|
||||
|
||||
|
||||
#define _STA_RTOS_CONCAT(a, b) a ## b
|
||||
|
||||
#define STA_RTOS_MAKE_HANDLE_NAME(name) _STA_RTOS_CONCAT(name, Handle)
|
||||
#define STA_RTOS_MAKE_CALLBACK_NAME(name) _STA_RTOS_CONCAT(name, Callback)
|
||||
#define STA_RTOS_MAKE_ENTRY_NAME(name) _STA_RTOS_CONCAT(name, Task)
|
||||
|
||||
|
||||
#endif // STA_RTOS_SYSTEM_NAMES_HPP
|
Loading…
x
Reference in New Issue
Block a user