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:
parent
d764e037bf
commit
88f4f7c6e8
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user