50#define MTD_EMULATED_DEV(n, sc, pps, ps) \
51 uint8_t _mtd_emulated_memory ## n[sc * pps * ps]; \
53 mtd_emulated_t mtd_emulated_dev ## n = { \
55 .driver = &_mtd_emulated_driver, \
57 .pages_per_sector = pps, \
61 .size = sc * pps * ps, \
62 .memory = _mtd_emulated_memory ## n, \
66 XFA_CONST(mtd_dev_t, mtd_dev_xfa, 99) CONCAT(*mtd_emulated, n) = (mtd_dev_t *)&mtd_emulated_dev ## n
68#if MODULE_VFS_AUTO_MOUNT || DOXYGEN
83#define MTD_EMULATED_DEV_FS(n, m, fs) \
84 VFS_AUTO_MOUNT(fs, VFS_MTD(mtd_emulated_dev ## n), "/mtde" # n, m)
const mtd_desc_t _mtd_emulated_driver
Emulated MTD device operations table for mtd.
Device descriptor for a MTD device that is emulated in RAM.
bool init_done
indicates whether initialization is already done
mtd_dev_t base
inherit from mtd_dev_t object
size_t size
total size of the MTD device in bytes
uint8_t * memory
RAM that is used for the emulated MTD device.