From 2a2a13a2d1b97734cff25fb4f118fe4c157d3235 Mon Sep 17 00:00:00 2001 From: Henrik Stickann <4376396-Mithradir@users.noreply.gitlab.com> Date: Sat, 9 Apr 2022 21:15:47 +0200 Subject: [PATCH] Added configuration helper --- include/sta/os2/easy_config.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/sta/os2/easy_config.hpp diff --git a/include/sta/os2/easy_config.hpp b/include/sta/os2/easy_config.hpp new file mode 100644 index 0000000..1a5f975 --- /dev/null +++ b/include/sta/os2/easy_config.hpp @@ -0,0 +1,20 @@ +/** + * @brief Helper for easy system task setup in . + * + * 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