[riot-notifications] [RIOT-OS/RIOT] mtd: Change API to return 0 on success (#13896)

benpicco notifications at github.com
Sat May 2 22:43:17 CEST 2020


While discussing the MTD API, I noticed another problem.
`.read()`, `.write()` and `.erase()` all take a `uint32_t addr` - this will break for any address > 4GiB. It's pretty hard to get SD cards smaller than that these days…

We could just make that 64 bit or change it into `write(sector, offset)` - the latter one would match how this is used by the file systems.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13896#issuecomment-623010692
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200502/49c85314/attachment.htm>


More information about the notifications mailing list