Fix ChibiOS 6.x kernel support

This commit is contained in:
Joel Bodenmann 2021-08-26 02:08:42 +02:00
parent 14f26ec934
commit 0dac6b4d0f

View File

@ -49,7 +49,12 @@ typedef tprio_t gThreadpriority;
#define GFX_THREAD_STACK(name, sz) WORKING_AREA(name, sz) #define GFX_THREAD_STACK(name, sz) WORKING_AREA(name, sz)
#define GFX_THREAD_FUNCTION(fnName, param) gThreadreturn fnName(void *param) #define GFX_THREAD_FUNCTION(fnName, param) gThreadreturn fnName(void *param)
#define gfxThreadReturn(retval) return retval
#if CH_KERNEL_MAJOR >= 6
#define gfxThreadReturn(retval) return
#else
#define gfxThreadReturn(retval) return retval
#endif
#if CH_KERNEL_MAJOR <= 2 #if CH_KERNEL_MAJOR <= 2
typedef struct { typedef struct {