dfu: replace FLASH_ALIGN with FLASH_WRITE_BLOCK_SIZE
Use the define generated by the DTS instead of using the FLASH_ALIGN alias. The latter is an internal mcuboot name. We shouldn't need it in Zephyr itself. Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
This commit is contained in:
parent
1047be9dbe
commit
313b20d648
3 changed files with 4 additions and 4 deletions
|
@ -18,8 +18,9 @@
|
|||
#include <board.h>
|
||||
#include <dfu/flash_img.h>
|
||||
|
||||
BUILD_ASSERT_MSG((CONFIG_IMG_BLOCK_BUF_SIZE % FLASH_ALIGN == 0),
|
||||
"CONFIG_IMG_BLOCK_BUF_SIZE is not multiple of FLASH_ALIGN");
|
||||
BUILD_ASSERT_MSG((CONFIG_IMG_BLOCK_BUF_SIZE % FLASH_WRITE_BLOCK_SIZE == 0),
|
||||
"CONFIG_IMG_BLOCK_BUF_SIZE is not a multiple of "
|
||||
"FLASH_WRITE_BLOCK_SIZE");
|
||||
|
||||
static bool flash_verify(struct device *dev, off_t offset,
|
||||
u8_t *data, size_t len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue