/* The only "gotcha" is that when there are 24 sectors, they are split across 2 "banks" of 12 sectors each, with another set of small sectors (16 KB) in the second bank occurring after the large ones (128 KB) in the first. We could consider supporting this as two devices to make the layout cleaner, but this will do for now.  */
void flash_stm32_page_layout(const struct device *dev, const struct flash_pages_layout **layout, size_t *layout_size)
/* The only "gotcha" is that when there are 24 sectors, they are split across 2 "banks" of 12 sectors each, with another set of small sectors (16 KB) in the second bank occurring after the large ones (128 KB) in the first. We could consider supporting this as two devices to make the layout cleaner, but this will do for now.  */
void flash_stm32_page_layout(const struct device *dev, const struct flash_pages_layout **layout, size_t *layout_size)
{
	ARG_UNUSED(dev);
	*layout = stm32f4_flash_layout;
	*layout_size = ARRAY_SIZE(stm32f4_flash_layout);
}