mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
boards/arm/samv7/samv71-xult/src/sam_bringup.c: CONFIG_BCH
This commit is contained in:
committed by
Xiang Xiao
parent
dd86f7d461
commit
4494a2a501
@@ -187,8 +187,10 @@ int sam_bringup(void)
|
|||||||
FAR struct i2c_master_s *i2c;
|
FAR struct i2c_master_s *i2c;
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_S25FL1_CHARDEV) || defined(HAVE_PROGMEM_CHARDEV)
|
#if defined(HAVE_S25FL1_CHARDEV) || defined(HAVE_PROGMEM_CHARDEV)
|
||||||
|
#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;
|
||||||
|
|
||||||
@@ -430,6 +432,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", S25FL1_MTD_MINOR);
|
snprintf(blockdev, 18, "/dev/mtdblock%d", S25FL1_MTD_MINOR);
|
||||||
@@ -444,6 +447,7 @@ int sam_bringup(void)
|
|||||||
chardev, ret);
|
chardev, ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif /* defined(CONFIG_BCH) */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -471,6 +475,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);
|
||||||
@@ -485,6 +490,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