commit | 2d4d6f05e60efbe29a5870a5571d8fd9cce007fb | [log] [tgz] |
---|---|---|
author | Peter A. Bigot <pab@pabigot.com> | Tue Oct 29 05:18:46 2019 -0500 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Sat Nov 09 15:26:06 2019 +0100 |
tree | dc89024408609ed04a8b83c7966f7b300ea6b77f | |
parent | 98a344fe21a4439b0cd1d340635a6ccb3e166f46 [diff] |
drivers: spi_nor: improve documentation and validation on flash layout size The smallest region that can be erashed is one sector, so setting SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=2048 will fail at runtime when the flash page API is used to erase a single (or misaligned) page. Add a compile-time check that the requested layout page size is erasable. Signed-off-by: Peter A. Bigot <pab@pabigot.com>