/* * Task.hpp * * Created on: 30 May 2023 * Author: malyarenko */ #ifndef PLATFORM_RTOS_TASK_HPP_ #define PLATFORM_RTOS_TASK_HPP_ #include #include namespace platform { namespace rtos { struct Task { /** Имя */ const char* name; /** Приоритет */ UBaseType_t prio; /** Глубина стека */ UBaseType_t depth; /** Исполняемый код задачи */ TaskFunction_t func; /** Дескриптор */ TaskHandle_t handle; Task(const char* name, UBaseType_t prio, UBaseType_t depth, TaskFunction_t func) : name(name), prio(prio), depth(depth), func(func), handle(NULL) { }; }; } /* namespace rtos */ } /* namespace platform */ #endif /* PLATFORM_RTOS_TASK_HPP_ */