Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
Fix compatibility with newer ChibiOS, as upstream don't want to do so.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Jan 12, 2020
1 parent 0586fd2 commit 40b48f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/gdisp/gdisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ void _gdispInit(void)
#if defined(GDISP_DRIVER_LIST)
{
unsigned i;
typedef const GDISPVMT const GDISPVMTLIST[1];
typedef const GDISPVMT GDISPVMTLIST[1];

extern GDISPVMTLIST GDISP_DRIVER_LIST;
static const GDISPVMT * const dclist[] = {GDISP_DRIVER_LIST};
Expand Down
2 changes: 1 addition & 1 deletion src/gdisp/gdisp_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ typedef struct GDISPVMT {
#endif

// Build the VMT
const GDISPVMT const GDISP_DRIVER_VMT[1] = {{
const GDISPVMT GDISP_DRIVER_VMT[1] = {{
{ GDRIVER_TYPE_DISPLAY, 0, sizeof(GDisplay), _gdispInitDriver, _gdispPostInitDriver, _gdispDeInitDriver },
gdisp_lld_init,
#if GDISP_HARDWARE_DEINIT
Expand Down
2 changes: 1 addition & 1 deletion src/gdriver/gdriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ typedef struct GDriverVMT {
* </code>
*
*/
typedef const struct GDriverVMT const GDriverVMTList[1];
typedef const struct GDriverVMT GDriverVMTList[1];

/*===========================================================================*/
/* External declarations. */
Expand Down
4 changes: 2 additions & 2 deletions src/gos/gos_chibios.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -105,7 +105,7 @@ void gfxSemInit(gSem *psem, gSemcount val, gSemcount limit)
val = limit;

psem->limit = limit;

#if CH_KERNEL_MAJOR <= 2
chSemInit(&psem->sem, val);
#else
Expand Down

0 comments on commit 40b48f4

Please sign in to comment.