SMART block driver plus changes to M25P and RAM drivers needed for SMART support

This commit is contained in:
Gregory Nutt 2013-04-30 19:10:54 -06:00
parent 785517272f
commit be2a9d8fc7
4 changed files with 5 additions and 7 deletions

View File

@ -153,7 +153,7 @@
****************************************************************************/
/* Pre-allocated simulated flash */
#ifdef CONFIG_MTD_RAM
#ifdef CONFIG_RAMMTD
//static uint8_t g_simflash[CONFIG_EXAMPLES_SMART_BUFSIZE];
#endif
@ -217,7 +217,7 @@ int nsh_archinitialize(void)
/* Create a RAM MTD device if configured */
#ifdef CONFIG_MTD_RAM
#ifdef CONFIG_RAMMTD
{
uint8_t *start = (uint8_t *) kmalloc(CONFIG_EXAMPLES_SMART_BUFSIZE);
mtd = rammtd_initialize(start, CONFIG_EXAMPLES_SMART_BUFSIZE);
@ -229,7 +229,7 @@ int nsh_archinitialize(void)
#endif
}
#endif /* CONFIG_MTD_RAM */
#endif /* CONFIG_RAMMTD */
#endif /* CONFIG_MTD */
#endif /* CONFIG_STM32_SPI3 */

View File

@ -413,8 +413,8 @@ CONFIG_MP25P_BYTEWRITE=y
CONFIG_MTD_SMART=y
CONFIG_MTD_SMART_SECTOR_SIZE=512
# CONFIG_MTD_RAMTRON is not set
CONFIG_MTD_RAM=y
CONFIG_MTD_RAM_SMART=y
CONFIG_RAMMTD=y
CONFIG_RAMMTD_SMART=y
# CONFIG_MTD_SST25 is not set
# CONFIG_MTD_SST39FV is not set
# CONFIG_MTD_W25 is not set

View File

@ -216,7 +216,6 @@ CONFIG_RAMMTD_FLASHSIM=y
# CONFIG_MTD_AT45DB is not set
# CONFIG_MTD_MP25P is not set
# CONFIG_MTD_RAMTRON is not set
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_SST25 is not set
# CONFIG_MTD_SST39FV is not set
# CONFIG_MTD_W25 is not set

View File

@ -216,7 +216,6 @@ CONFIG_RAMMTD_FLASHSIM=y
# CONFIG_MTD_AT45DB is not set
# CONFIG_MTD_MP25P is not set
# CONFIG_MTD_RAMTRON is not set
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_SST25 is not set
# CONFIG_MTD_SST39FV is not set
# CONFIG_MTD_W25 is not set