1
0
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:
Gunar Schorcht 2023-12-07 15:28:07 +01:00
parent cfc2232f11
commit 1ad92d458f

View File

@ -52,7 +52,6 @@ FATFS fat_fs; /* FatFs work area needed for each volume */
#ifdef MODULE_MTD_NATIVE
/* mtd device for native is provided in boards/native/board_init.c */
extern mtd_dev_t *mtd0;
mtd_dev_t *fatfs_mtd_devs[1];
#elif MODULE_MTD_SDCARD
#include "mtd_sdcard.h"
@ -400,7 +399,7 @@ int main(void)
#endif
#if MODULE_MTD_NATIVE
fatfs_mtd_devs[0] = mtd0;
fatfs_mtd_devs[0] = mtd_dev_get(0);
#elif MODULE_MTD_SDCARD
for (unsigned int i = 0; i < SDCARD_SPI_NUM; i++){
mtd_sdcard_devs[i].base.driver = &mtd_sdcard_driver;