mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/pkg/fatfs_vfs: replace external mtd0
declaration
Since the `extern mtd_dev_t *` declarations were removed from board definitions, `mtd_dev_get` has to be used instead.
This commit is contained in:
parent
1ad92d458f
commit
c93f0a70d4
@ -64,7 +64,6 @@ static vfs_mount_t _test_vfs_mount = {
|
|||||||
|
|
||||||
#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
|
#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
|
||||||
/* mtd devices are provided in the board's board_init.c*/
|
/* mtd devices are provided in the board's board_init.c*/
|
||||||
extern mtd_dev_t *mtd0;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MODULE_MTD_SDCARD)
|
#if defined(MODULE_MTD_SDCARD)
|
||||||
@ -409,7 +408,7 @@ int main(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
|
#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
|
||||||
fatfs.dev = mtd0;
|
fatfs.dev = mtd_dev_get(0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MODULE_MTD_SDCARD)
|
#if defined(MODULE_MTD_SDCARD)
|
||||||
|
Loading…
Reference in New Issue
Block a user