From 5d8705b6e0338b0fd631f27e80b94efea96201d0 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 4 Mar 2017 15:02:55 +1000 Subject: FEATURE: Significantly improved the FreeRTOS port FEATURE: Added support for operating system initialisation in FreeRTOS FEATURE: Added GFX_OS_CALL_UGFXMAIN configuration option to allow uGFXMain() to be automatically called FEATURE: Added GFX_OS_UGFXMAIN_STACKSIZE configuration option to control uGFXMain() stack size --- src/gfx.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gfx.c') diff --git a/src/gfx.c b/src/gfx.c index 00d4e563..d13d173c 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -19,6 +19,7 @@ static bool_t gfxInitDone = FALSE; /* These init functions are defined by each module but not published */ extern void _gosInit(void); +extern void _gosPostInit(void); extern void _gosDeinit(void); #ifdef GFX_OS_PRE_INIT_FUNCTION extern void GFX_OS_PRE_INIT_FUNCTION(void); @@ -77,6 +78,9 @@ extern void _gosDeinit(void); extern void _gtransInit(void); extern void _gtransDeinit(void); #endif +#if GFX_OS_CALL_UGFXMAIN + extern threadreturn_t uGFXMain(void *param); +#endif void gfxInit(void) { @@ -130,6 +134,10 @@ void gfxInit(void) #if GFX_USE_GWIN _gwinInit(); #endif + _gosPostInit(); + #if GFX_OS_CALL_UGFXMAIN + uGFXMain(0); + #endif } void gfxDeinit(void) -- cgit v1.2.3