diff options
author | inmarket <inmarket@ugfx.org> | 2017-03-04 15:02:55 +1000 |
---|---|---|
committer | inmarket <inmarket@ugfx.org> | 2017-03-04 15:02:55 +1000 |
commit | 5d8705b6e0338b0fd631f27e80b94efea96201d0 (patch) | |
tree | eb5dbf709d06aad8834902cb5462462fb04c6e1b /src/gfx.c | |
parent | 5497e2ed1fe86d0f8e89ca67c7bf40f08e927c3b (diff) | |
download | uGFX-5d8705b6e0338b0fd631f27e80b94efea96201d0.tar.gz uGFX-5d8705b6e0338b0fd631f27e80b94efea96201d0.tar.bz2 uGFX-5d8705b6e0338b0fd631f27e80b94efea96201d0.zip |
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
Diffstat (limited to 'src/gfx.c')
-rw-r--r-- | src/gfx.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |