aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorinmarket <inmarket@ugfx.org>2017-04-06 17:11:28 +1000
committerinmarket <inmarket@ugfx.org>2017-04-06 17:11:28 +1000
commit23ceb054fcf9a6d7e29359b197e268ba03f1ce3c (patch)
tree0a222b6d7461adc0bafa7df398aeeea441cae96c /src
parentee33f13f7e14e66e5ca2bff2676ab2876a2f69e5 (diff)
downloaduGFX-23ceb054fcf9a6d7e29359b197e268ba03f1ce3c.tar.gz
uGFX-23ceb054fcf9a6d7e29359b197e268ba03f1ce3c.tar.bz2
uGFX-23ceb054fcf9a6d7e29359b197e268ba03f1ce3c.zip
Fixed an issue on FreeRTOS where thread stacks were being created too large
Diffstat (limited to 'src')
-rw-r--r--src/gos/gos_freertos.c3
1 files changed, 3 insertions, 0 deletions
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;