diff --git a/arch/arm/src/stm32/stm32_allocateheap.c b/arch/arm/src/stm32/stm32_allocateheap.c index c995239cbfe..e5404209453 100644 --- a/arch/arm/src/stm32/stm32_allocateheap.c +++ b/arch/arm/src/stm32/stm32_allocateheap.c @@ -92,6 +92,7 @@ */ #if defined(CONFIG_STM32_STM32F10XX) + /* Set the end of system SRAM */ # define SRAM1_END CONFIG_DRAM_END @@ -133,7 +134,8 @@ * In addition, external FSMC SRAM may be available. */ -#elif defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX +#elif defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX) + /* Set the end of system SRAM */ # define SRAM1_END 0x20020000