1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/mtd_spi_nor: Storage is byte-writable

See-Also: https://github.com/RIOT-OS/RIOT/pull/17683#discussion_r815362737
This commit is contained in:
chrysn 2022-02-27 00:09:23 +01:00
parent d764e037bf
commit 88f4f7c6e8

View File

@ -520,6 +520,9 @@ static int mtd_spi_nor_init(mtd_dev_t *mtd)
mtd->sector_count = mtd_spi_nor_get_size(&dev->jedec_id)
/ (mtd->pages_per_sector * mtd->page_size);
}
/* SPI NOR is byte addressable; instances don't need to configure that */
assert(mtd->write_size <= 1);
mtd->write_size = 1;
_set_addr_width(mtd);
DEBUG("mtd_spi_nor_init: %" PRIu32 " bytes "