Added configuration helper

This commit is contained in:
Henrik Stickann 2022-04-09 21:15:47 +02:00
parent a4a4851704
commit 2a2a13a2d1

View File

@ -0,0 +1,20 @@
/**
* @brief Helper for easy system task setup in <sta/config.hpp>.
*
* Define STA_OS2_SYSTEM_TASKS_ENABLE before including this header
* to enable all system tasks and required features.
*/
#ifndef STA_OS2_EASY_CONFIG_HPP
#define STA_OS2_EASY_CONFIG_HPP
#ifdef STA_OS2_SYSTEM_TASKS_ENABLE
// Enable system events used by system tasks
# define STA_OS2_SYSTEM_EVENT_ENABLE
// Enable system tasks
# define STA_OS2_WATCHDOG_ENABLE
# define STA_OS2_STARTUP_ENABLE
#endif // STA_OS2_SYSTEM_TASKS_ENABLE
#endif // STA_OS2_EASY_CONFIG_HPP