From dc4f706132dce07c6a394446157c6a46f5fd3c71 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 28 Feb 2015 13:06:15 +1000 Subject: GFILE was not being initialised properly. Added GFX_OS_EXTRA_INIT_FUNCTION and GFX_OS_EXTRA_DEINIT_FUNCTION macro's to enable special initialisation to occur being anything else happens. --- gfx.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gfx.h') diff --git a/gfx.h b/gfx.h index 8be39815..541743e5 100644 --- a/gfx.h +++ b/gfx.h @@ -221,6 +221,14 @@ extern "C" { * @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. + * @note If you define GFX_NO_OS_INIT as TRUE in your gfxconf.h file then ugfx doesn't try to + * initialise the operating system for you when you call @p gfxInit(). + * @note If you define GFX_OS_EXTRA_INIT_FUNCTION in your gfxconf.h file the macro is the + * name of a void function with no parameters that is called immediately after + * operating system initialisation (whether or not GFX_NO_OS_INIT is set). + * @note If you define GFX_OS_EXTRA_DEINIT_FUNCTION in your gfxconf.h file the macro is the + * name of a void function with no parameters that is called immediately before + * operating system de-initialisation (as ugfx is exiting). * * @api */ -- cgit v1.2.3