diff options
| author | Andrew Leech | 2020-01-31 11:31:23 +1100 |
|---|---|---|
| committer | Damien George | 2020-02-04 18:18:41 +1100 |
| commit | ff9a61b5a82a56f5f8811815f943b575eb419790 (patch) | |
| tree | e318e59ec3ffad4ed39a2702998c03f84e5d702e /ports/stm32/boards | |
| parent | b51a2c266a50163f41cb4320f9b9f68a91132403 (diff) | |
stm32/sdram: Expose the result of sdram startup test in stm32_main.
This means boards can choose to only use it for gc heap if the test passes.
Diffstat (limited to 'ports/stm32/boards')
| -rw-r--r-- | ports/stm32/boards/STM32F429DISC/mpconfigboard.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/boards/STM32F429DISC/mpconfigboard.h b/ports/stm32/boards/STM32F429DISC/mpconfigboard.h index 1422e8d52..9b65f6174 100644 --- a/ports/stm32/boards/STM32F429DISC/mpconfigboard.h +++ b/ports/stm32/boards/STM32F429DISC/mpconfigboard.h @@ -79,8 +79,8 @@ // SDRAM #define MICROPY_HW_SDRAM_SIZE (64 / 8 * 1024 * 1024) // 64 Mbit #define MICROPY_HW_SDRAM_STARTUP_TEST (1) -#define MICROPY_HEAP_START sdram_start() -#define MICROPY_HEAP_END sdram_end() +#define MICROPY_HEAP_START ((sdram_valid) ? sdram_start() : &_heap_start) +#define MICROPY_HEAP_END ((sdram_valid) ? sdram_end() : &_heap_end) // Timing configuration for 90 Mhz (11.90ns) of SD clock frequency (180Mhz/2) #define MICROPY_HW_SDRAM_TIMING_TMRD (2) |
