Fixed an issue on FreeRTOS where thread stacks were being created too large
This commit is contained in:
parent
ee33f13f7e
commit
23ceb054fc
2 changed files with 4 additions and 0 deletions
|
@ -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 justifyWordWrap, justifyNoWordWrap text justification to GDISP (requires GDISP_NEED_TEXT_WORDWRAP)
|
||||||
FEATURE: Added justifyPad, justifyNoPad text justification to GDISP
|
FEATURE: Added justifyPad, justifyNoPad text justification to GDISP
|
||||||
FEATURE: Added GDISP_NEED_TEXT_BOXPADLR and GDISP_NEED_TEXT_BOXPADTB configuration options
|
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 ***
|
*** Release 2.7 ***
|
||||||
|
|
|
@ -147,6 +147,9 @@ gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_
|
||||||
gfxThreadHandle task;
|
gfxThreadHandle task;
|
||||||
(void) stackarea;
|
(void) stackarea;
|
||||||
|
|
||||||
|
// uGFX expresses stack size in bytes - FreeRTOS in "Stack Words"
|
||||||
|
stacksz /= sizeof(StackType_t);
|
||||||
|
|
||||||
if (stacksz < configMINIMAL_STACK_SIZE)
|
if (stacksz < configMINIMAL_STACK_SIZE)
|
||||||
stacksz = configMINIMAL_STACK_SIZE;
|
stacksz = configMINIMAL_STACK_SIZE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue