From 7fbfde42aabbcd30cffba2fba35158236c0a6c6c Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 25 May 2013 01:26:52 +1000 Subject: GOS module, for operating system independance GMISC fast floating point trig GMISC fast fixed point trig --- include/gfx.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'include/gfx.h') diff --git a/include/gfx.h b/include/gfx.h index ba4a9167..84aec39f 100644 --- a/include/gfx.h +++ b/include/gfx.h @@ -16,6 +16,25 @@ #ifndef _GFX_H #define _GFX_H +/** + * These two definitions below are required before anything else so that we can + * turn module definitions off and on. + */ + +/** + * @brief Generic 'false' boolean constant. + */ +#if !defined(FALSE) || defined(__DOXYGEN__) + #define FALSE 0 +#endif + +/** + * @brief Generic 'true' boolean constant. + */ +#if !defined(TRUE) || defined(__DOXYGEN__) + #define TRUE -1 +#endif + /* gfxconf.h is the user's project configuration for the GFX system. */ #include "gfxconf.h" @@ -122,6 +141,7 @@ * Get all the options for each sub-system. * */ +#include "gos/options.h" #include "gmisc/options.h" #include "gevent/options.h" #include "gtimer/options.h" @@ -142,6 +162,7 @@ /** * Include the sub-system header files */ +#include "gos/gos.h" #include "gmisc/gmisc.h" #include "gevent/gevent.h" #include "gtimer/gtimer.h" @@ -153,5 +174,27 @@ #include "gaudin/gaudin.h" #include "gaudout/gaudout.h" +#ifdef __cplusplus +extern "C" { +#endif + + /** + * @brief The one call to start it all + * + * @note This will initialise each sub-system that has been turned on. + * For example, if GFX_USE_GDISP is defined then display will be initialised + * and cleared to black. + * + * @api + */ + void gfxInit(void); + + /* Compatibility for old programs */ + #define gdispInit() gfxInit() + +#ifdef __cplusplus +} +#endif + #endif /* _GFX_H */ /** @} */ -- cgit v1.2.3