Question
CMSIS_OS.h warning - osThreadDef, warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
Posted on May 01, 2018 at 03:41
Has anyone seen this warning while using FreeRTOS? The full define is :
#define osThreadDef(name, thread, priority, instances, stacksz) \
const osThreadDef_t os_thread_def_##name = \{ #name, (thread), (priority), (instances), (stacksz)}This define is being used because the current FreeRTOSConfig.h has configSUPPORT_STATIC_ALLOCATION == 0. This was taken from the tcpip RTOS example from H7_V1.2.0.
Has anyone seen this?