summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_allocateheap.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-05-19 11:54:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-05-19 11:54:56 -0600
commit0fc2b6c2d86d4d043f2e69de03f6409c3e964cb4 (patch)
tree388bf50c7a4c271866cf2cca1ed2336b934237f6 /nuttx/arch/arm/src/stm32/stm32_allocateheap.c
parentaf086950f8567b3595cee4b3cc7852557464837d (diff)
downloadpx4-nuttx-0fc2b6c2d86d4d043f2e69de03f6409c3e964cb4.tar.gz
px4-nuttx-0fc2b6c2d86d4d043f2e69de03f6409c3e964cb4.tar.bz2
px4-nuttx-0fc2b6c2d86d4d043f2e69de03f6409c3e964cb4.zip
STM32L15X UART, DMA, and heap initialization support
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_allocateheap.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_allocateheap.c31
1 files changed, 28 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_allocateheap.c b/nuttx/arch/arm/src/stm32/stm32_allocateheap.c
index 5eea5c53d..95f468898 100644
--- a/nuttx/arch/arm/src/stm32/stm32_allocateheap.c
+++ b/nuttx/arch/arm/src/stm32/stm32_allocateheap.c
@@ -92,12 +92,37 @@
# undef CONFIG_STM32_FSMC_SRAM
#endif
+/* The STM32L15xxx family has only internal SRAM. The heap is in one contiguous
+ * block starting at g_idle_topstack and extending through CONFIG_DRAM_END.
+ */
+
+#if defined(CONFIG_STM32_STM32L15XX)
+
+ /* Set the end of system SRAM */
+
+# define SRAM1_END CONFIG_DRAM_END
+
+ /* There is no FSMC (Other EnergyLite STM32's do have an FSMC, but not the STM32L15X */
+
+# undef CONFIG_STM32_FSMC_SRAM
+
+ /* The STM32L EnergyLite family has no CCM SRAM */
+
+# undef CONFIG_STM32_CCMEXCLUDE
+# define CONFIG_STM32_CCMEXCLUDE 1
+
+ /* Only one memory region can be support (internal SRAM) */
+
+# if CONFIG_MM_REGIONS > 1
+# error "CONFIG_MM_REGIONS > 1. The STM32L15X has only one memory region."
+# endif
+
/* For the STM312F10xxx family, all internal SRAM is in one contiguous block
- * starting at g_idle_topstack and extending through CONFIG_DRAM_END (my apologies for
- * the bad naming). In addition, external FSMC SRAM may be available.
+ * starting at g_idle_topstack and extending through CONFIG_DRAM_END (my apologies
+ * for the bad naming). In addition, external FSMC SRAM may be available.
*/
-#if defined(CONFIG_STM32_STM32F10XX)
+#elif defined(CONFIG_STM32_STM32F10XX)
/* Set the end of system SRAM */