diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-07-08 22:30:39 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-07-08 22:30:39 +1000 |
commit | 732bccb57a0ea4e40eab157d9cf6fd88d2ff0d4c (patch) | |
tree | 4095dc75a099f7f4e9eb825c47b83250d1d80442 /src/gos/gos_raw32.c | |
parent | ac231c558c7c9758c487f5407017d406299c49cb (diff) | |
parent | ed75f5e8c34051942531bfe96c9827978796320e (diff) | |
download | uGFX-732bccb57a0ea4e40eab157d9cf6fd88d2ff0d4c.tar.gz uGFX-732bccb57a0ea4e40eab157d9cf6fd88d2ff0d4c.tar.bz2 uGFX-732bccb57a0ea4e40eab157d9cf6fd88d2ff0d4c.zip |
Merge branch 'master' into STM32F7_Discovery
Diffstat (limited to 'src/gos/gos_raw32.c')
-rw-r--r-- | src/gos/gos_raw32.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gos/gos_raw32.c b/src/gos/gos_raw32.c index 95e9cb23..f1ff6c45 100644 --- a/src/gos/gos_raw32.c +++ b/src/gos/gos_raw32.c @@ -438,17 +438,18 @@ void gfxSleepMicroseconds(delaytime_t ms) { * work out the correct macro values. * You can use the debugger to work out the values for your compiler and put them here. * Defining these macros as constant values makes the system behavior guaranteed but also - * makes your code compiler and cpu architecture dependent. + * makes your code compiler and cpu architecture dependent. It also saves a heap of code + * and a few bytes of RAM. */ -#if 0 - // Define your compiler constant values here. - // These example values are for mingw32 compiler (x86). +#if GFX_COMPILER == GFX_COMPILER_MINGW32 #define AUTO_DETECT_MASK FALSE #define STACK_DIR_UP FALSE #define MASK1 0x00000011 #define MASK2 0x00000000 - #define STACK_BASE 9 + #define STACK_BASE 12 #else + // Use auto-detection of the stack frame format + // Assumes all the relevant stuff to be relocated is in the first 256 bytes of the jmpbuf. #define AUTO_DETECT_MASK TRUE #define STACK_DIR_UP stackdirup // TRUE if the stack grow up instead of down #define MASK1 jmpmask1 // The 1st mask of jmp_buf elements that need relocation |