Fixed an issue on FreeRTOS where thread stacks were being created too large

release/v2.9
inmarket 2017-04-06 17:11:28 +10:00
parent ee33f13f7e
commit 23ceb054fc
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ FEATURE: Added justifyTop, justifyMiddle & justifyBottom text justification to G
FEATURE: Added justifyWordWrap, justifyNoWordWrap text justification to GDISP (requires GDISP_NEED_TEXT_WORDWRAP)
FEATURE: Added justifyPad, justifyNoPad text justification to GDISP
FEATURE: Added GDISP_NEED_TEXT_BOXPADLR and GDISP_NEED_TEXT_BOXPADTB configuration options
FIX: Fixed an issue on FreeRTOS where thread stacks were being created too large
*** Release 2.7 ***

View File

@ -147,6 +147,9 @@ gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_
gfxThreadHandle task;
(void) stackarea;
// uGFX expresses stack size in bytes - FreeRTOS in "Stack Words"
stacksz /= sizeof(StackType_t);
if (stacksz < configMINIMAL_STACK_SIZE)
stacksz = configMINIMAL_STACK_SIZE;