mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/pkg/fatfs: 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
cfc2232f11
commit
1ad92d458f
@ -52,7 +52,6 @@ FATFS fat_fs; /* FatFs work area needed for each volume */
|
|||||||
|
|
||||||
#ifdef MODULE_MTD_NATIVE
|
#ifdef MODULE_MTD_NATIVE
|
||||||
/* mtd device for native is provided in boards/native/board_init.c */
|
/* mtd device for native is provided in boards/native/board_init.c */
|
||||||
extern mtd_dev_t *mtd0;
|
|
||||||
mtd_dev_t *fatfs_mtd_devs[1];
|
mtd_dev_t *fatfs_mtd_devs[1];
|
||||||
#elif MODULE_MTD_SDCARD
|
#elif MODULE_MTD_SDCARD
|
||||||
#include "mtd_sdcard.h"
|
#include "mtd_sdcard.h"
|
||||||
@ -400,7 +399,7 @@ int main(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MODULE_MTD_NATIVE
|
#if MODULE_MTD_NATIVE
|
||||||
fatfs_mtd_devs[0] = mtd0;
|
fatfs_mtd_devs[0] = mtd_dev_get(0);
|
||||||
#elif MODULE_MTD_SDCARD
|
#elif MODULE_MTD_SDCARD
|
||||||
for (unsigned int i = 0; i < SDCARD_SPI_NUM; i++){
|
for (unsigned int i = 0; i < SDCARD_SPI_NUM; i++){
|
||||||
mtd_sdcard_devs[i].base.driver = &mtd_sdcard_driver;
|
mtd_sdcard_devs[i].base.driver = &mtd_sdcard_driver;
|
||||||
|
Loading…
Reference in New Issue
Block a user