/** * @file app_tasks.h * @brief FreeRTOS task/queue creation interface */ #ifndef __APP_TASKS_H__ #define __APP_TASKS_H__ #ifdef __cplusplus extern "C" { #endif #include /* Log message passed from LED tasks to the print task via a queue */ typedef struct { uint8_t led_id; /* 1 = LED1(PB0), 2 = LED2(PA6) */ uint32_t count; /* toggle counter of that LED */ } LogMsg_t; void AppTasks_CreateAll(void); /* Active log printing switch (default: off) */ void AppTasks_SetLogEnabled(uint8_t enable); uint8_t AppTasks_GetLogEnabled(void); #ifdef __cplusplus } #endif #endif /* __APP_TASKS_H__ */