SFDP: Add unit tests for Sector Map Parameter Table parsing
Add tests for `sfdp_parse_sector_map_table()` which currently (at the
time of this commit) supports flash devices with
* no Sector Map Parameter Table (i.e. the whole flash is uniform and
non-configurable)
* a single descriptor in the Sector Map Parameter Table (i.e. the
flash layout is non-configurable and has multiple regions)

Support and unit tests for flashes with multiple configurable layouts
will be added in the future.

Note: The implementation of `sfdp_parse_sector_map_table()` assumes
the table to be valid if read succeeds, so the SFDP reader callback
needs to ensure it reads data correctly or return an error.
ls
1 parent f08c3cd commit a16c2bf1735654047cc0513161c03ad65bca57a6
@Lingkai Dong Lingkai Dong authored on 4 Aug 2021
Showing 1 changed file
View
storage/blockdevice/tests/UNITTESTS/SFDP/test_sfdp.cpp