mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 06:55:13 +00:00
boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c: CONFIG_BCH
This commit is contained in:
parent
ed305ccc64
commit
19edcab554
1 changed files with 4 additions and 0 deletions
|
|
@ -132,8 +132,10 @@ int board_app_initialize(uintptr_t arg)
|
|||
FAR struct mtd_dev_s *mtd_temp;
|
||||
#endif
|
||||
#if defined(HAVE_N25QXXX_CHARDEV)
|
||||
#if defined(CONFIG_BCH)
|
||||
char blockdev[18];
|
||||
char chardev[12];
|
||||
#endif /* defined(CONFIG_BCH) */
|
||||
#endif
|
||||
int ret = OK;
|
||||
|
||||
|
|
@ -264,6 +266,7 @@ int board_app_initialize(uintptr_t arg)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BCH)
|
||||
/* Use the minor number to create device paths */
|
||||
|
||||
snprintf(blockdev, 18, "/dev/mtdblock%d", N25QXXX_MTD_MINOR);
|
||||
|
|
@ -277,6 +280,7 @@ int board_app_initialize(uintptr_t arg)
|
|||
_err("ERROR: bchdev_register %s failed: %d\n", chardev, ret);
|
||||
return ret;
|
||||
}
|
||||
#endif /* defined(CONFIG_BCH) */
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue