diff options
author | inmarket <inmarket@ugfx.org> | 2017-04-06 17:11:28 +1000 |
---|---|---|
committer | inmarket <inmarket@ugfx.org> | 2017-04-06 17:11:28 +1000 |
commit | 23ceb054fcf9a6d7e29359b197e268ba03f1ce3c (patch) | |
tree | 0a222b6d7461adc0bafa7df398aeeea441cae96c | |
parent | ee33f13f7e14e66e5ca2bff2676ab2876a2f69e5 (diff) | |
download | uGFX-23ceb054fcf9a6d7e29359b197e268ba03f1ce3c.tar.gz uGFX-23ceb054fcf9a6d7e29359b197e268ba03f1ce3c.tar.bz2 uGFX-23ceb054fcf9a6d7e29359b197e268ba03f1ce3c.zip |
Fixed an issue on FreeRTOS where thread stacks were being created too large
-rw-r--r-- | changelog.txt | 1 | ||||
-rw-r--r-- | src/gos/gos_freertos.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/changelog.txt b/changelog.txt index 4a74a094..43f07037 100644 --- a/changelog.txt +++ b/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 *** diff --git a/src/gos/gos_freertos.c b/src/gos/gos_freertos.c index 414b0bab..7c47aa40 100644 --- a/src/gos/gos_freertos.c +++ b/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; |