Add experimental support for ChibiOS 6.x kernel
This commit is contained in:
parent
85c7b08825
commit
346375c001
@ -7,6 +7,7 @@ CHANGE: Added type gImage to replace V2.x gdispImage
|
||||
FIX: Fixed GWIN console widget scroll
|
||||
FIX: A warning and adjusted is made if GDISP_IMAGE_BMP_BLIT_BUFFER_SIZE is less than 40 bytes.
|
||||
FIX: Prevent compiler warnings on duplicate const specifiers.
|
||||
FEATURE: Added support for ChibiOS 6.x kernel.
|
||||
|
||||
|
||||
*** Release 2.9 ***
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#if CH_KERNEL_MAJOR < 2 || CH_KERNEL_MAJOR > 5
|
||||
#if CH_KERNEL_MAJOR < 2 || CH_KERNEL_MAJOR > 6
|
||||
#error "GOS: Unsupported version of ChibiOS"
|
||||
#endif
|
||||
|
||||
|
@ -35,7 +35,11 @@
|
||||
#endif
|
||||
typedef systime_t gTicks;
|
||||
typedef cnt_t gSemcount;
|
||||
#if CH_KERNEL_MAJOR >= 6
|
||||
typedef void gThreadreturn;
|
||||
#else
|
||||
typedef msg_t gThreadreturn;
|
||||
#endif
|
||||
typedef tprio_t gThreadpriority;
|
||||
|
||||
#define gSemMaxCount ((gSemcount)(((unsigned long)((gSemcount)(-1))) >> 1))
|
||||
|
Loading…
Reference in New Issue
Block a user