[Horus] Another 64K saved for Lua

This commit is contained in:
Bertrand Songis
2016-02-20 19:42:55 +01:00
parent 2519df3b59
commit 7fceed4f5f
5 changed files with 66 additions and 54 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ if(CPU_TYPE STREQUAL STM32F4)
include_directories(${STM32LIB_DIR}/STM32F4xx_StdPeriph_Driver/inc) include_directories(${STM32LIB_DIR}/STM32F4xx_StdPeriph_Driver/inc)
include_directories(${STM32LIB_DIR}/CMSIS/Device/ST/STM32F4xx/Include) include_directories(${STM32LIB_DIR}/CMSIS/Device/ST/STM32F4xx/Include)
include_directories(${STM32LIB_DIR}/CMSIS/include) include_directories(${STM32LIB_DIR}/CMSIS/include)
# add_definitions(-DSTM32F4) add_definitions(-DSTM32F4)
set(STM32LIB_SRC set(STM32LIB_SRC
${STM32LIB_SRC} ${STM32LIB_SRC}
CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f40_41xxx.s
+2 -2
View File
@@ -23,8 +23,8 @@
#if defined(COLORLCD) #if defined(COLORLCD)
extern const uint16_t *fontspecsTable[16]; extern const uint16_t * const fontspecsTable[16];
extern const pm_uchar *fontsTable[16]; extern const pm_uchar * const fontsTable[16];
#else #else
+2 -2
View File
@@ -68,5 +68,5 @@ const pm_uchar font_xxlsize[] PROGMEM = {
#include "font_xxlsize.lbm" #include "font_xxlsize.lbm"
}; };
const uint16_t *fontspecsTable[16] = { font_stdsize_specs, font_tinsize_specs, font_smlsize_specs, font_midsize_specs, font_dblsize_specs, font_xxlsize_specs }; const uint16_t * const fontspecsTable[16] = { font_stdsize_specs, font_tinsize_specs, font_smlsize_specs, font_midsize_specs, font_dblsize_specs, font_xxlsize_specs };
const pm_uchar *fontsTable[16] = { font_stdsize, font_tinsize, font_smlsize, font_midsize, font_dblsize, font_xxlsize }; const pm_uchar * const fontsTable[16] = { font_stdsize, font_tinsize, font_smlsize, font_midsize, font_dblsize, font_xxlsize };
+1 -1
View File
@@ -26,7 +26,7 @@ void drawColumnHeader(const char * const * headers, uint8_t index)
// TODO ? displayHeader(headers[index]); // TODO ? displayHeader(headers[index]);
} }
const char * STR_MONTHS[] = { "Jan", "Fev", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; const char * const STR_MONTHS[] = { "Jan", "Fev", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
#define DATETIME_SEPARATOR_X 425 #define DATETIME_SEPARATOR_X 425
#define DATETIME_LINE1 9 #define DATETIME_LINE1 9
+17 -5
View File
@@ -110,7 +110,7 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_edata = .; /* define a global symbol at data end */ _edata = .; /* define a global symbol at data end */
} >RAM } >CCM
/* Uninitialized data section */ /* Uninitialized data section */
. = ALIGN(4); . = ALIGN(4);
@@ -118,18 +118,30 @@ SECTIONS
{ {
/* This is used by the startup in order to initialize the .bss secion */ /* This is used by the startup in order to initialize the .bss secion */
_sbss = .; /* define a global symbol at bss start */ _sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss; /* __bss_start__ = _sbss; */
*(.bss) *(.bss)
*(.bss*) *(.bss*)
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
_ebss = .; /* define a global symbol at bss end */ _ebss = .; /* define a global symbol at bss end */
__bss_end__ = _ebss; /* __bss_end__ = _ebss; */
} >CCM
/* collect all uninitialized .ccm sections */
.ram (NOLOAD) :
{
. = ALIGN(4);
_sram = .;
/* __ccm_start__ = _sccm; */
*(.ram)
. = ALIGN(4);
_eram = .;
/* __ccm_end__ = _eccm; */
} >RAM } >RAM
PROVIDE ( end = _ebss ); PROVIDE ( end = _eram );
PROVIDE ( _end = _ebss ); PROVIDE ( _end = _eram );
/* User_heap_stack section, used to check that there is enough RAM left */ /* User_heap_stack section, used to check that there is enough RAM left */
._user_heap_stack : ._user_heap_stack :