Benjamin Valentin
53f891e604
tests/mtd_mapper: don't set device properites for regions
2022-06-03 00:22:06 +02:00
chrysn
52ea93ef03
drivers/mtd_mapper: Add write_size
2022-03-31 10:58:52 +02:00
Jue
347152b128
tests/mtd_mapper: add tests for the read_page and write_page backend
2022-03-26 14:30:42 +01:00
Jue
80305ade1f
tests/mtd_mapper: clear fake-memory for every test
2022-03-25 18:32:07 +01:00
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