Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: video: video_stm32_dcmi: Use shared multi-heap if enabled.
The stm32 video driver currently allocates a static pool in SRAM which: a) Does not respect the alignment specified in `CONFIG_VIDEO_BUFFER_POOL_ALIGN`. b) Overflows the SRAM if multi-heap is enabled and a bigger buffer size is used. This patch allocates an aligned DCMI buffer from the shared multi-heap pool (if enabled), or from the static pool if not, similar to how it's done in `video_common.c`. Signed-off-by: Ibrahim Abdalkader <[email protected]>
- Loading branch information