Skip to content

Commit

Permalink
Add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
photonthunder committed Jun 29, 2023
1 parent b428829 commit 8e9e87a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/flash/flash_sam0.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ static int flash_sam0_write(const struct device *dev, off_t offset,

#else /* CONFIG_SOC_FLASH_SAM0_EMULATE_BYTE_PAGES */

BUILD_ASSERT((FLASH_WRITE_BLK_SZ % sizeof(uint32_t)) == 0, "unsupported write-block-size");

static int flash_sam0_write(const struct device *dev, off_t offset,
const void *data, size_t len)
{
Expand Down

0 comments on commit 8e9e87a

Please sign in to comment.