Skip to content

Commit

Permalink
fixup! drivers/mtd_default: use XFA with MTD pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Sep 10, 2023
1 parent 20936d6 commit 7f65c67
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions drivers/include/mtd_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,47 @@
extern "C" {
#endif

#if defined(MODULE_MTD_SDCARD_DEFAULT)
#include "mtd_sdcard.h"
#endif

#if defined(MODULE_MTD_EMULATED)
#include "mtd_emulated.h"
#endif

#if !DOXYGEN

/**
* @brief Declare `mtd*` according to the `MTD_*` symbols defined by the board
*/
#ifdef MTD_0
extern mtd_dev_t *MTD_0;
#endif
#ifdef MTD_1
extern mtd_dev_t *MTD_1;
#endif
#ifdef MTD_2
extern mtd_dev_t *MTD_2;
#endif
#ifdef MTD_3
extern mtd_dev_t *MTD_3;
#endif
#ifdef MTD_4
extern mtd_dev_t *MTD_4;
#endif
#ifdef MTD_5
extern mtd_dev_t *MTD_5;
#endif
#endif /* !DOXYGEN */

#if defined(MODULE_MTD_SDCARD_DEFAULT)
extern mtd_sdcard_t mtd_sdcard_dev0;
#endif

#if defined(MODULE_MTD_EMULATED)
extern mtd_emulated_t mtd_emulated_dev0;
#endif

/**
* @brief Get the default MTD device by index
*
Expand Down

0 comments on commit 7f65c67

Please sign in to comment.