summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3240g-eval/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-27 23:14:43 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-27 23:14:43 +0000
commita103801be3696e5e296766dd70d3d4774283c256 (patch)
tree8b2ab04f54b1d0a6eb83abb6de034c94db79ae4d /nuttx/configs/stm3240g-eval/include
parente4968d3556b862b4bdf950f6d70516fce710dfe1 (diff)
downloadpx4-nuttx-a103801be3696e5e296766dd70d3d4774283c256.tar.gz
px4-nuttx-a103801be3696e5e296766dd70d3d4774283c256.tar.bz2
px4-nuttx-a103801be3696e5e296766dd70d3d4774283c256.zip
Add logic to support the FSMC SRAM in the NuttX heap
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4433 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/include')
-rwxr-xr-xnuttx/configs/stm3240g-eval/include/board.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/nuttx/configs/stm3240g-eval/include/board.h b/nuttx/configs/stm3240g-eval/include/board.h
index 6704b552f..3c8b552e4 100755
--- a/nuttx/configs/stm3240g-eval/include/board.h
+++ b/nuttx/configs/stm3240g-eval/include/board.h
@@ -257,6 +257,28 @@
#define BUTTON_TAMPER_BIT (1 << BUTTON_TAMPER)
#define BUTTON_USER_BIT (1 << BUTTON_USER)
+/* SRAM definitions *****************************************************************/
+/* The 16 Mbit SRAM is connected to the STM32F407IGH6 FSMC bus which shares the same
+ * I/Os with the CAN1 bus. Jumper settings:
+ *
+ * JP1: Connect PE4 to SRAM as A20
+ * JP2: onnect PE3 to SRAM as A19
+ *
+ * JP3 and JP10 must not be fitted for SRAM and LCD application. JP3 and JP10
+ * select CAN1 or CAN2 if fitted; neither if not fitted.
+ */
+
+#if defined(CONFIG_STM32_FSMC) && defined(CONFIG_STM32_FSMC_SRAM)
+# if defined(CONFIG_STM32_CAN1) || defined(CONFIG_STM32_CAN2)
+# error "The STM3240G-EVAL cannot support both CAN and FSMC SRAM"
+# endif
+#endif
+
+/* This is the Bank1 SRAM2 address: */
+
+#define BOARD_SRAM_BASE 0x64000000
+#define BOARD_SRAM_SIZE (2*1024*1024)
+
/* Alternate function pin selections ************************************************/
/* UART3: