mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
boards/arm/samv7/same70-xplained/src/sam_bringup.c: CONFIG_BCH
This commit is contained in:
committed by
Xiang Xiao
parent
ed10984e06
commit
dd86f7d461
@@ -154,8 +154,10 @@ int sam_bringup(void)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_PROGMEM_CHARDEV
|
#ifdef HAVE_PROGMEM_CHARDEV
|
||||||
FAR struct mtd_dev_s *mtd;
|
FAR struct mtd_dev_s *mtd;
|
||||||
|
#if defined(CONFIG_BCH)
|
||||||
char blockdev[18];
|
char blockdev[18];
|
||||||
char chardev[12];
|
char chardev[12];
|
||||||
|
#endif /* defined(CONFIG_BCH) */
|
||||||
#endif
|
#endif
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@@ -285,6 +287,7 @@ int sam_bringup(void)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_BCH)
|
||||||
/* Use the minor number to create device paths */
|
/* Use the minor number to create device paths */
|
||||||
|
|
||||||
snprintf(blockdev, 18, "/dev/mtdblock%d", PROGMEM_MTD_MINOR);
|
snprintf(blockdev, 18, "/dev/mtdblock%d", PROGMEM_MTD_MINOR);
|
||||||
@@ -299,6 +302,7 @@ int sam_bringup(void)
|
|||||||
chardev, ret);
|
chardev, ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif /* defined(CONFIG_BCH) */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_USBHOST
|
#ifdef HAVE_USBHOST
|
||||||
|
|||||||
Reference in New Issue
Block a user