Skip to content

Commit

Permalink
samples: video: capture: add support for SMARTDMA
Browse files Browse the repository at this point in the history
Add support for using the SMARTDMA engine on the FRDM-MCXN947 board with
the video capture sample.

Signed-off-by: Daniel DeGrasse <[email protected]>
  • Loading branch information
danieldegrasse committed Oct 7, 2024
1 parent d9189a9 commit 91f05c3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=40000
CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=2
# Workaround for issue where SDMA driver needs to start before camera, so that
# clock output will be generated for camera device
CONFIG_CHECK_INIT_PRIORITIES=n
11 changes: 11 additions & 0 deletions samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/{
chosen {
zephyr,camera = &video_sdma;
};
};

0 comments on commit 91f05c3

Please sign in to comment.