From f6e415d0f9b52eba04a54e57893c0e3a99a6ad5f Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 12 Jul 2012 16:11:43 +0000 Subject: Get the STM3220G-EVAL nsh2 configuration to compile git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4936 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/stm3220g-eval/README.txt | 4 +++- nuttx/configs/stm3220g-eval/include/board.h | 12 ++++++++++++ nuttx/configs/stm3220g-eval/nsh2/defconfig | 1 - 3 files changed, 15 insertions(+), 2 deletions(-) (limited to 'nuttx/configs/stm3220g-eval') diff --git a/nuttx/configs/stm3220g-eval/README.txt b/nuttx/configs/stm3220g-eval/README.txt index bc85f7ff0..665034254 100644 --- a/nuttx/configs/stm3220g-eval/README.txt +++ b/nuttx/configs/stm3220g-eval/README.txt @@ -888,7 +888,9 @@ Where is one of the following: Since RS-232 and SDIO use the same pins (one controlled by JP22), RS232 and SDIO cannot be used concurrently. - 3. This configuration requires that jumper JP22 be set to enable SDIO operation. + 3. This configuration requires that jumper JP22 be set to enable SDIO + operation. To enable MicroSD Card, which shares same I/Os with RS-232, + JP22 is not fitted. 4. In order to use SDIO without overruns, DMA must be used. diff --git a/nuttx/configs/stm3220g-eval/include/board.h b/nuttx/configs/stm3220g-eval/include/board.h index f4fd918f1..bd0a059f7 100644 --- a/nuttx/configs/stm3220g-eval/include/board.h +++ b/nuttx/configs/stm3220g-eval/include/board.h @@ -265,6 +265,7 @@ * - PC11 is MicroSDCard_D3 & RS232/IrDA_RX (JP22 open) * - PC10 is MicroSDCard_D2 & RSS232/IrDA_TX */ + #ifdef CONFIG_STM32_USART3 # define GPIO_USART3_RX GPIO_USART3_RX_2 # define GPIO_USART3_TX GPIO_USART3_TX_2 @@ -422,6 +423,17 @@ #define GPIO_I2C1_SCL GPIO_I2C1_SCL_1 #define GPIO_I2C1_SDA GPIO_I2C1_SDA_2 +/* DMA Channl/Stream Selections *****************************************************/ +/* Stream selections are arbitrary for now but might become important in the future + * is we set aside more DMA channels/streams. + * + * SDIO DMA + * DMAMAP_SDIO_1 = Channel 4, Stream 3 + * DMAMAP_SDIO_2 = Channel 4, Stream 6 + */ + +#define DMAMAP_SDIO DMAMAP_SDIO_1 + /************************************************************************************ * Public Data ************************************************************************************/ diff --git a/nuttx/configs/stm3220g-eval/nsh2/defconfig b/nuttx/configs/stm3220g-eval/nsh2/defconfig index 7f5a7fd87..6ea3f18a0 100644 --- a/nuttx/configs/stm3220g-eval/nsh2/defconfig +++ b/nuttx/configs/stm3220g-eval/nsh2/defconfig @@ -812,7 +812,6 @@ CONFIG_MMCSD_MULTIBLOCK_DISABLE=y CONFIG_MMCSD_MMCSUPPORT=n CONFIG_MMCSD_HAVECARDDETECT=n - # # TCP/IP and UDP support via uIP # -- cgit v1.2.3