#define FREERTOS_VERSION_NUMBER_MINOR 4
#define FREERTOS_VERSION_NUMBER_REV 2
+/**
+ * Data type casting macro for the xTaskCreate function.
+ *
+ * The xTaskCreate function has a name parameter, which data type is different for
+ * FreeRTOS versions 7.x.x and 8.x.x.
+ *
+ * Use this macro for the task name specification to avoid compiler warnings when
+ * changing the Operating system.
+ */
+#define FREERTOS_TASK_NAME(name) ((const signed char *)(name))
+
#include "os/FreeRTOS.h"
#include "os/task.h"
#include "os/semphr.h"