Add Arduino as a full GOS supported operating system (even though it is really just a special bare bones platform)
This commit is contained in:
parent
beacfaa994
commit
82cb03947c
4 changed files with 13 additions and 3 deletions
|
@ -462,6 +462,8 @@
|
|||
#include "src/gos/gos_raw32.h"
|
||||
#elif GFX_USE_OS_ECOS
|
||||
#include "src/gos/gos_ecos.h"
|
||||
#elif GFX_USE_OS_ARDUINO
|
||||
#include "src/gos/gos_arduino.h"
|
||||
#else
|
||||
#error "Your operating system is not supported yet"
|
||||
#endif
|
||||
|
|
|
@ -5,5 +5,6 @@ GFXSRC += $(GFXLIB)/src/gos/gos_chibios.c \
|
|||
$(GFXLIB)/src/gos/gos_osx.c \
|
||||
$(GFXLIB)/src/gos/gos_raw32.c \
|
||||
$(GFXLIB)/src/gos/gos_ecos.c \
|
||||
$(GFXLIB)/src/gos/gos_rawrtos.c
|
||||
$(GFXLIB)/src/gos/gos_rawrtos.c \
|
||||
$(GFXLIB)/src/gos/gos_arduino.c
|
||||
|
||||
|
|
|
@ -69,6 +69,13 @@
|
|||
#ifndef GFX_USE_OS_ECOS
|
||||
#define GFX_USE_OS_ECOS FALSE
|
||||
#endif
|
||||
/**
|
||||
* @brief Use Arduino
|
||||
* @details Defaults to FALSE
|
||||
*/
|
||||
#ifndef GFX_USE_OS_ARDUINO
|
||||
#define GFX_USE_OS_ARDUINO FALSE
|
||||
#endif
|
||||
/**
|
||||
* @}
|
||||
*
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#ifndef _GOS_RULES_H
|
||||
#define _GOS_RULES_H
|
||||
|
||||
#if !GFX_USE_OS_CHIBIOS && !GFX_USE_OS_WIN32 && !GFX_USE_OS_LINUX && !GFX_USE_OS_OSX && !GFX_USE_OS_RAW32 && !GFX_USE_OS_FREERTOS && !GFX_USE_OS_ECOS && !GFX_USE_OS_RAWRTOS
|
||||
#if !GFX_USE_OS_CHIBIOS && !GFX_USE_OS_WIN32 && !GFX_USE_OS_LINUX && !GFX_USE_OS_OSX && !GFX_USE_OS_RAW32 && !GFX_USE_OS_FREERTOS && !GFX_USE_OS_ECOS && !GFX_USE_OS_RAWRTOS && !GFX_USE_OS_ARDUINO
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GOS: No Operating System has been defined. ChibiOS (GFX_USE_OS_CHIBIOS) has been turned on for you."
|
||||
#endif
|
||||
|
@ -24,7 +24,7 @@
|
|||
#define GFX_USE_OS_CHIBIOS TRUE
|
||||
#endif
|
||||
|
||||
#if GFX_USE_OS_CHIBIOS + GFX_USE_OS_WIN32 + GFX_USE_OS_LINUX + GFX_USE_OS_OSX + GFX_USE_OS_RAW32 + GFX_USE_OS_FREERTOS + GFX_USE_OS_ECOS + GFX_USE_OS_RAWRTOS != 1 * TRUE
|
||||
#if GFX_USE_OS_CHIBIOS + GFX_USE_OS_WIN32 + GFX_USE_OS_LINUX + GFX_USE_OS_OSX + GFX_USE_OS_RAW32 + GFX_USE_OS_FREERTOS + GFX_USE_OS_ECOS + GFX_USE_OS_RAWRTOS + GFX_USE_OS_ARDUINO != 1 * TRUE
|
||||
#error "GOS: More than one operation system has been defined as TRUE."
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue