Fix ChibiOS 6.x kernel support
This commit is contained in:
parent
14f26ec934
commit
0dac6b4d0f
@ -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)
|
||||||
|
|
||||||
|
#if CH_KERNEL_MAJOR >= 6
|
||||||
|
#define gfxThreadReturn(retval) return
|
||||||
|
#else
|
||||||
#define gfxThreadReturn(retval) return retval
|
#define gfxThreadReturn(retval) return retval
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CH_KERNEL_MAJOR <= 2
|
#if CH_KERNEL_MAJOR <= 2
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user