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

4 Commits

Author SHA1 Message Date
Benjamin Valentin
5d3de413b3 tests/mtd_mapper: implement pagewise functions 2020-11-05 18:17:54 +01:00
Benjamin Valentin
81b07895af mtd_mapper: count offset in sectors
The offset of MTD regions must be aligned with erase sectors.
So in order not to waste address space, avoid misconfiguration and
eventually support storage media > 4 GiB, give the offset in sectors
instead of bytes.
2020-05-12 12:02:05 +02:00
fabian18
a3a1c160ee mtd: Change API to return 0 on success
Returning the number of bytes written/read could return a negative integer
because a uint32_t is expected for the length in read()/write() operations.
2020-05-06 20:24:27 +02:00
d2c3362c88
mtd_mapper: add test 2020-03-04 10:47:54 +01:00