diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-07-07 19:39:17 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-07-07 19:39:17 +1000 |
commit | de28112a7d6db829142ad113c93eb8ad071b0d65 (patch) | |
tree | 876b84a61fd88f1ab57e7714ca8efef6fbad66a9 | |
parent | 5191c278e7195de62b619be58c19ea338c31d54c (diff) | |
download | uGFX-de28112a7d6db829142ad113c93eb8ad071b0d65.tar.gz uGFX-de28112a7d6db829142ad113c93eb8ad071b0d65.tar.bz2 uGFX-de28112a7d6db829142ad113c93eb8ad071b0d65.zip |
GDISP fix bug in non-multithread
-rw-r--r-- | include/gdisp/gdisp.h | 1 | ||||
-rw-r--r-- | src/gdisp/gdisp.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/gdisp/gdisp.h b/include/gdisp/gdisp.h index 4ba72580..2497801a 100644 --- a/include/gdisp/gdisp.h +++ b/include/gdisp/gdisp.h @@ -572,7 +572,6 @@ extern "C" { #include "gdisp/lld/gdisp_lld.h" /* The same as above but use the low level driver directly if no multi-thread support is needed */ - #define _gdispInit(gdisp) gdisp_lld_init() #define gdispIsBusy() FALSE #define gdispClear(color) gdisp_lld_clear(color) #define gdispDrawPixel(x, y, color) gdisp_lld_draw_pixel(x, y, color) diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index 1b16ac53..5c0f4709 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -135,6 +135,10 @@ gdisp_lld_init(); gfxMutexExit(&gdispMutex); } +#else + void _gdispInit(void) { + gdisp_lld_init(); + } #endif #if GDISP_NEED_MULTITHREAD |