You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/03/05 00:31:21 UTC

[incubator-nuttx] branch master updated: stm32f103-minimum: Remove unnecessary RAMMTD support in W25 initialization

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 0332cdd  stm32f103-minimum: Remove unnecessary RAMMTD support in W25 initialization
0332cdd is described below

commit 0332cddccfeda60c2cbdfcd213098d1c489d438e
Author: Alan Carvalho de Assis <ac...@gmail.com>
AuthorDate: Wed Mar 4 18:31:08 2020 -0600

    stm32f103-minimum: Remove unnecessary RAMMTD support in W25 initialization
---
 boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c
index a29d70e..6e9d127 100644
--- a/boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c
+++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c
@@ -280,22 +280,5 @@ int stm32_w25initialize(int minor)
 #endif /* CONFIG_FS_SMARTFS */
 #endif /* HAVE_W25 */
 
-  /* Create a RAM MTD device if configured */
-
-#if defined(CONFIG_RAMMTD) && defined(CONFIG_STM32F103MINIMUM_RAMMTD)
-  {
-    uint8_t *start = (uint8_t *)kmm_malloc(CONFIG_STM32F103MINIMUM_RAMMTD_SIZE * 1024);
-    mtd = rammtd_initialize(start, CONFIG_STM32F103MINIMUM_RAMMTD_SIZE * 1024);
-    mtd->ioctl(mtd, MTDIOC_BULKERASE, 0);
-
-#if defined(CONFIG_MTD_SMART) && defined(CONFIG_FS_SMARTFS)
-    /* Now initialize a SMART Flash block device and bind it to the MTD device */
-
-    smart_initialize(CONFIG_STM32F103MINIMUM_RAMMTD_MINOR, mtd, NULL);
-#endif
-  }
-
-#endif /* CONFIG_RAMMTD && CONFIG_STM32F103MINIMUM_RAMMTD */
-
   return OK;
 }