aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2016-01-08 21:42:12 +0100
committerJoel Bodenmann <joel@seriouslyembedded.com>2016-01-08 21:42:12 +0100
commited9a422d81994047edc59794ff26bbcc1f7ea6c5 (patch)
treebaea09530fe73f71e86b5b1e6197038151efb6bf /src
parent50a3048e59c4165073ff32b3043ab06ec54962ce (diff)
downloaduGFX-ed9a422d81994047edc59794ff26bbcc1f7ea6c5.tar.gz
uGFX-ed9a422d81994047edc59794ff26bbcc1f7ea6c5.tar.bz2
uGFX-ed9a422d81994047edc59794ff26bbcc1f7ea6c5.zip
Setting the default heap size to 5120 bytes to avoid confusion due to linker errors when no malloc() / free() are available
Diffstat (limited to 'src')
-rw-r--r--src/gos/gos_options.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gos/gos_options.h b/src/gos/gos_options.h
index 0c6fd7a7..c61b407f 100644
--- a/src/gos/gos_options.h
+++ b/src/gos/gos_options.h
@@ -182,7 +182,7 @@
#endif
/**
* @brief How much RAM should uGFX use for the heap when using its own internal heap allocator
- * @details Defaults to 0.
+ * @details Defaults to 5120.
* @note Only used when the internal ugfx heap allocator is used
* (GFX_USE_OS_RAW32, GFX_USE_OS_ARDUINO, GFX_US_OS_KEIL, GFX_USE_OS_CMSIS)
* @note If 0 then the standard C runtime malloc(), free() and realloc()
@@ -193,7 +193,7 @@
* is added allowing the user to add extra memory blocks to the heap.
*/
#ifndef GFX_OS_HEAP_SIZE
- #define GFX_OS_HEAP_SIZE 0
+ #define GFX_OS_HEAP_SIZE 5120
#endif
/** @} */