[riot-notifications] [RIOT-OS/RIOT] mtd_mapper: count offset in sectors (#14045)

benpicco notifications at github.com
Fri May 8 23:47:13 CEST 2020

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

### Contribution description

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.

### Testing procedure

`tests/mtd_mapper` should still work

### Issues/PRs references

in preparation of #14038

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * mtd_mapper: count offset in sectors

-- File Changes --

    M drivers/include/mtd_mapper.h (4)
    M drivers/mtd_mapper/mtd_mapper.c (17)
    M tests/mtd_mapper/main.c (2)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200508/f44a10bd/attachment.htm>

More information about the notifications mailing list