boards/arm/samv7/same70-xplained/src/sam_bringup.c: CONFIG_BCH

This commit is contained in:
YAMAMOTO Takashi 2021-03-17 08:05:34 +09:00 committed by Xiang Xiao
parent ed10984e06
commit dd86f7d461
1 changed files with 4 additions and 0 deletions

View File

@ -154,8 +154,10 @@ int sam_bringup(void)
{
#ifdef HAVE_PROGMEM_CHARDEV
FAR struct mtd_dev_s *mtd;
#if defined(CONFIG_BCH)
char blockdev[18];
char chardev[12];
#endif /* defined(CONFIG_BCH) */
#endif
int ret;
@ -285,6 +287,7 @@ int sam_bringup(void)
return ret;
}
#if defined(CONFIG_BCH)
/* Use the minor number to create device paths */
snprintf(blockdev, 18, "/dev/mtdblock%d", PROGMEM_MTD_MINOR);
@ -299,6 +302,7 @@ int sam_bringup(void)
chardev, ret);
return ret;
}
#endif /* defined(CONFIG_BCH) */
#endif
#ifdef HAVE_USBHOST