Browse Source

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

remotes/origin_old/release/v2.9
inmarket 5 years ago
parent
commit
23ceb054fc
  1. 1
      changelog.txt
  2. 3
      src/gos/gos_freertos.c

1
changelog.txt

@ -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 ***

3
src/gos/gos_freertos.c

@ -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;

Loading…
Cancel
Save