Skip to content

Commit

Permalink
drivers/at2[45]: EEPROMs can be written byte-wise
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Feb 26, 2022
1 parent 84c3c07 commit 890efcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/at24cxxx/mtd/mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ static int _mtd_at24cxxx_init(mtd_dev_t *mtd)
mtd->pages_per_sector = 1;
mtd->sector_count = DEV(mtd)->params.eeprom_size /
DEV(mtd)->params.page_size;
mtd->write_size = 1;
return 0;
}

Expand Down
1 change: 1 addition & 0 deletions drivers/at25xxx/mtd/mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ static int mtd_at25xxx_init(mtd_dev_t *dev)
dev->pages_per_sector = 1;
dev->page_size = mtd_at25xxx->params->page_size;
dev->sector_count = mtd_at25xxx->params->size / mtd_at25xxx->params->page_size;
dev->write_size = 1;
return 0;
}
return -EIO;
Expand Down

0 comments on commit 890efcd

Please sign in to comment.