Browse Source

Add experimental support for ChibiOS 6.x kernel

develop
Joel Bodenmann 11 months ago
parent
commit
346375c001
  1. 1
      changelog.txt
  2. 2
      src/gos/gos_chibios.c
  3. 6
      src/gos/gos_chibios.h

1
changelog.txt

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

2
src/gos/gos_chibios.c

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

6
src/gos/gos_chibios.h

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

Loading…
Cancel
Save