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