prog.cpp:5:2: error: ‘TaskHandle_t’ does not name a type
TaskHandle_t handle; /// Task handle after initialization
^~~~~~~~~~~~
prog.cpp:6:2: error: ‘StaticTask_t’ does not name a type; did you mean ‘static_task’?
StaticTask_t state; /// Internal task state struct
^~~~~~~~~~~~
static_task
prog.cpp:8:8: error: ‘BaseType_t’ does not name a type
const BaseType_t affinity; /// Task core
^~~~~~~~~~
prog.cpp:9:8: error: ‘BaseType_t’ does not name a type
const BaseType_t basic_priority; /// Task init priority
^~~~~~~~~~
prog.cpp:10:8: error: ‘TaskFunction_t’ does not name a type
const TaskFunction_t function; /// Task function pointer
^~~~~~~~~~~~~~
prog.cpp:14:3: error: ‘StackType_t’ does not name a type
StackType_t data[stack_size]; /// Stack data pointer
^~~~~~~~~~~
prog.cpp:19:23: error: ‘esp_err_t’ does not name a type
template<size_t size> esp_err_t xTaskStaticInit(static_task<size>& task_struct);
^~~~~~~~~
prog.cpp:22:23: error: ‘esp_err_t’ does not name a type
template<size_t size> esp_err_t xTaskStaticInit(static_task<size>& task_struct){
^~~~~~~~~
prog.cpp:48:14: error: ‘BoardTask’ was not declared in this scope
.function = BoardTask,
^~~~~~~~~
prog.cpp:48:14: note: suggested alternative: ‘board_task’
.function = BoardTask,
^~~~~~~~~
board_task
prog.cpp:50:1: error: ‘static_task<2048>’ has no non-static data member named ‘affinity’
};
^
prog.cpp:52:15: error: ‘::main’ must return ‘int’
void main(void){
^
prog.cpp: In function ‘int main()’:
prog.cpp:54:5: error: ‘xTaskStaticInit’ was not declared in this scope
xTaskStaticInit(board_task);
^~~~~~~~~~~~~~~