Add experimental support for ChibiOS 6.x kernel

develop
Joel Bodenmann 2021-08-12 12:47:08 +02:00
parent 85c7b08825
commit 346375c001
3 changed files with 7 additions and 2 deletions

View File

@ -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 ***

View File

@ -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

View File

@ -35,7 +35,11 @@
#endif
typedef systime_t gTicks;
typedef cnt_t gSemcount;
typedef msg_t gThreadreturn;
#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))