aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_options.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
committerinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
commit7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (patch)
tree95cf152ef65ff19c7b2515b427bbe86b92b611d0 /src/gos/gos_options.h
parent8bd70d953bcd3e32ceb4e45a4e561c973726280a (diff)
downloaduGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.gz
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.bz2
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.zip
For all source files update integer types to the new gI8 etc type names
Diffstat (limited to 'src/gos/gos_options.h')
-rw-r--r--src/gos/gos_options.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gos/gos_options.h b/src/gos/gos_options.h
index e0187e6a..bdb2b139 100644
--- a/src/gos/gos_options.h
+++ b/src/gos/gos_options.h
@@ -260,6 +260,21 @@
#ifndef GFX_EMULATE_MALLOC
#define GFX_EMULATE_MALLOC GFXOFF
#endif
+ /**
+ * @brief Is the maximum memory allocation less than 64K
+ * @details Defaults to GFXOFF
+ * @note Many CPU's cannot allocate memory blocks larger than 64K. Note that this
+ * is not necessarily mean that a pointer is 16 bit but a 16 bit pointer
+ * will definitely impose this restriction. An example is the x86 processor
+ * running in "FAR" mode. Pointers are 32 bit but the maximum size memory block is 64K.
+ * @note Specifying this only leads to code and memory optimisations. uGFX should still work
+ * on these processors even if it is not set although obviously an attempted memory
+ * allocation larger than 64K will fail.
+ */
+ #ifndef GFX_MEM_LT64K
+ #define GFX_MEM_LT64K GFXOFF
+ #endif
+
/** @} */
#endif /* _GOS_OPTIONS_H */