GDISP fix bug in non-multithread
This commit is contained in:
parent
5191c278e7
commit
de28112a7d
@ -572,7 +572,6 @@ extern "C" {
|
|||||||
#include "gdisp/lld/gdisp_lld.h"
|
#include "gdisp/lld/gdisp_lld.h"
|
||||||
|
|
||||||
/* The same as above but use the low level driver directly if no multi-thread support is needed */
|
/* 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 gdispIsBusy() FALSE
|
||||||
#define gdispClear(color) gdisp_lld_clear(color)
|
#define gdispClear(color) gdisp_lld_clear(color)
|
||||||
#define gdispDrawPixel(x, y, color) gdisp_lld_draw_pixel(x, y, color)
|
#define gdispDrawPixel(x, y, color) gdisp_lld_draw_pixel(x, y, color)
|
||||||
|
@ -135,6 +135,10 @@
|
|||||||
gdisp_lld_init();
|
gdisp_lld_init();
|
||||||
gfxMutexExit(&gdispMutex);
|
gfxMutexExit(&gdispMutex);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
void _gdispInit(void) {
|
||||||
|
gdisp_lld_init();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GDISP_NEED_MULTITHREAD
|
#if GDISP_NEED_MULTITHREAD
|
||||||
|
Loading…
Reference in New Issue
Block a user