1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

Tell the allocator sub-system about the SDRAM at 0x60000000

This commit is contained in:
Raman 2016-08-24 08:01:18 +05:30
parent 7b45da86b0
commit b82b1f68f0
2 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,7 @@ return {
},
config = {
egc = { mode = "alloc" },
ram = { internal_rams = 3 },
ram = { internal_rams = 4 },
},
modules = {
generic = { 'all', '-i2c', '-net', '-adc', '-spi', '-uart', '-can', '-pwm', '-rpc' },

View File

@ -32,11 +32,15 @@
#define DSRAM2_BASE 0x30000000
#define PSRAM_SIZE ( 64 * 1024 )
#define PSRAM_BASE 0x10000000
#define SDRAM_SIZE ( 8 * 1024 * 1024 )
#define SDRAM_BASE 0x60000000
#define INTERNAL_RAM1_FIRST_FREE end
#define INTERNAL_RAM1_LAST_FREE ( DSRAM1_BASE + DSRAM1_SIZE - STACK_SIZE_TOTAL - 1 )
#define INTERNAL_RAM2_FIRST_FREE DSRAM2_BASE
#define INTERNAL_RAM2_LAST_FREE ( DSRAM2_BASE + DSRAM2_SIZE - 1 )
#define INTERNAL_RAM3_FIRST_FREE PSRAM_BASE
#define INTERNAL_RAM3_LAST_FREE ( PSRAM_BASE + PSRAM_SIZE - 1 )
#define INTERNAL_RAM4_FIRST_FREE SDRAM_BASE
#define INTERNAL_RAM4_LAST_FREE ( SDRAM_BASE + SDRAM_SIZE - 1 )
#endif // #ifndef __CPU_XMC4500E144K1024_H__