mtd wrapper for sdcard_spi

Driver for SD-cards using mtd interface.

const mtd.h::mtd_desc_t mtd_sdcard_driver

sdcard device operations table for mtd

MTD_SDCARD_SKIP_ERASE

sdcards handle sector erase internally so it’s possible to directly write to the card without erasing the sector first.

1
(1)

Attention: an erase call will therefore NOT touch the content, so disable this feature to ensure overriding the data.

struct mtd_sdcard_t

Device descriptor for mtd_sdcard device.

This is an extension of the mtd_dev_t struct

mtd_dev_t base

inherit from mtd_dev_t object

sdcard_spi_t * sd_card

sdcard_spi dev descriptor

const sdcard_spi_params_t * params

params for sdcard_spi init