diff options
| author | Bernard Xiong <[email protected]> | 2015-10-18 17:24:57 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-10-18 17:24:57 +0800 |
| commit | 856db6ead1da9233e4a3e48914f63f4ad6adeb33 (patch) | |
| tree | 81c7ce0d3ee48513afa5cc7b0234898d8b3a6ff8 | |
| parent | 3ff3555903eb88ef94c07f0933c98452c9ecf509 (diff) | |
| parent | 1e3c79602d5089f1a707f425cdd5d455f83e6f2b (diff) | |
Merge pull request #570 from cedar-renjun/patch-6
Update board.h
| -rw-r--r-- | bsp/stm32f40x/drivers/board.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bsp/stm32f40x/drivers/board.h b/bsp/stm32f40x/drivers/board.h index 97b506c146..7f362503b0 100644 --- a/bsp/stm32f40x/drivers/board.h +++ b/bsp/stm32f40x/drivers/board.h @@ -37,8 +37,14 @@ // <o> Internal SRAM memory size[Kbytes] <8-64> // <i>Default: 64 +#ifdef __ICCARM__ +// Use *.icf ram symbal, to avoid hardcode. +extern char __ICFEDIT_region_RAM_end__; +#define STM32_SRAM_END &__ICFEDIT_region_RAM_end__ +#else #define STM32_SRAM_SIZE 128 #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024) +#endif // <o> Console on USART: <0=> no console <1=>USART 1 <2=>USART 2 <3=> USART 3 // <i>Default: 1 |
