]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - os/7.4.2_tms570/include/os/os.h
Library prepared for future use of new versions od FreeRTOS
[pes-rpp/rpp-lib.git] / os / 7.4.2_tms570 / include / os / os.h
index b471420ed02b6a72b01fad76fad1716a43135860..d354966d838a6970574119fea80d706efd9a8c2f 100644 (file)
 #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"