Integrate gfile build files

ugfx_release_2.6
inmarket 2014-02-07 01:35:31 +10:00
parent e72e270538
commit d667fab325
4 changed files with 47 additions and 4 deletions

2
gfx.mk
View File

@ -12,4 +12,4 @@ include $(GFXLIB)/src/gadc/gadc.mk
include $(GFXLIB)/src/gaudin/gaudin.mk include $(GFXLIB)/src/gaudin/gaudin.mk
include $(GFXLIB)/src/gaudout/gaudout.mk include $(GFXLIB)/src/gaudout/gaudout.mk
include $(GFXLIB)/src/gmisc/gmisc.mk include $(GFXLIB)/src/gmisc/gmisc.mk
include $(GFXLIB)/src/gfile/gfile.mk

View File

@ -9,6 +9,8 @@
/** /**
* Copy this file into your project directory and rename it as gfxconf.h * Copy this file into your project directory and rename it as gfxconf.h
* Edit your copy to turn on the uGFX features you want to use. * Edit your copy to turn on the uGFX features you want to use.
* The values below are the defaults. You should delete anything
* you are leaving as default.
* *
* Please use spaces instead of tabs in this file. * Please use spaces instead of tabs in this file.
*/ */
@ -26,7 +28,7 @@
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// GDISP // // GDISP //
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
#define GFX_USE_GDISP TRUE #define GFX_USE_GDISP FALSE
#define GDISP_NEED_AUTOFLUSH FALSE #define GDISP_NEED_AUTOFLUSH FALSE
#define GDISP_NEED_TIMERFLUSH FALSE #define GDISP_NEED_TIMERFLUSH FALSE
@ -185,6 +187,27 @@
#define GINPUT_NEED_DIAL FALSE #define GINPUT_NEED_DIAL FALSE
///////////////////////////////////////////////////////////////////////////
// GFILE //
///////////////////////////////////////////////////////////////////////////
#define GFX_USE_GFILE FALSE
#define GFILE_NEED_PRINTG FALSE
#define GFILE_NEED_SCANG FALSE
#define GFILE_NEED_STRINGS FALSE
#define GFILE_NEED_STDIO FALSE
#define GFILE_ALLOW_FLOATS FALSE
#define GFILE_ALLOW_DEVICESPECIFIC FALSE
#define GFILE_MAX_GFILES 3
#define GFILE_NEED_MEMFS FALSE
#define GFILE_NEED_ROMFS FALSE
#define GFILE_NEED_RAMFS FALSE
#define GFILE_NEED_FATFS FALSE
#define GFILE_NEED_NATIVEFS FALSE
#define GFILE_NEED_CHBIOSFS FALSE
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// GADC // // GADC //
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////

View File

@ -150,6 +150,13 @@
#ifndef GFX_USE_GMISC #ifndef GFX_USE_GMISC
#define GFX_USE_GMISC FALSE #define GFX_USE_GMISC FALSE
#endif #endif
/**
* @brief GFX File API
* @details Defaults to FALSE
*/
#ifndef GFX_USE_GFILE
#define GFX_USE_GFILE FALSE
#endif
/** @} */ /** @} */
/** /**
@ -157,6 +164,7 @@
* *
*/ */
#include "gos/options.h" #include "gos/options.h"
#include "gfile/options.h"
#include "gmisc/options.h" #include "gmisc/options.h"
#include "gqueue/options.h" #include "gqueue/options.h"
#include "gevent/options.h" #include "gevent/options.h"
@ -169,7 +177,7 @@
#include "gaudout/options.h" #include "gaudout/options.h"
/** /**
* Inter-dependancy safety checks on the sub-systems. * Interdependency safety checks on the sub-systems.
* *
*/ */
#include "gfx_rules.h" #include "gfx_rules.h"
@ -178,6 +186,7 @@
* Include the sub-system header files * Include the sub-system header files
*/ */
#include "gos/gos.h" #include "gos/gos.h"
#include "gfile/options.h"
#include "gmisc/gmisc.h" #include "gmisc/gmisc.h"
#include "gqueue/gqueue.h" #include "gqueue/gqueue.h"
#include "gevent/gevent.h" #include "gevent/gevent.h"
@ -208,7 +217,6 @@ extern "C" {
* @brief The one call to end it all * @brief The one call to end it all
* *
* @note This will deinitialise each sub-system that has been turned on. * @note This will deinitialise each sub-system that has been turned on.
* @note Do not call this without a previous @p gfxInit();
* *
* @api * @api
*/ */

View File

@ -187,6 +187,15 @@
#undef GDISP_INCLUDE_FONT_UI2 #undef GDISP_INCLUDE_FONT_UI2
#define GDISP_INCLUDE_FONT_UI2 TRUE #define GDISP_INCLUDE_FONT_UI2 TRUE
#endif #endif
#if GDISP_NEED_IMAGE
#if !GFX_USE_GFILE
#if GFX_DISPLAY_RULE_WARNINGS
#warning "GDISP: GFX_USE_GFILE is required when GDISP_NEED_IMAGE is TRUE. It has been turned on for you."
#endif
#undef GFX_USE_GFILE
#define GFX_USE_GFILE TRUE
#endif
#endif
#endif #endif
#if GFX_USE_GAUDIN #if GFX_USE_GAUDIN
@ -230,5 +239,8 @@
#if GFX_USE_GMISC #if GFX_USE_GMISC
#endif #endif
#if GFX_USE_GFILE
#endif
#endif /* _GFX_H */ #endif /* _GFX_H */
/** @} */ /** @} */