This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e114a004880d5e9fe00c8a20a9efa38c988e59c4 Author: yangsong8 <[email protected]> AuthorDate: Tue Nov 10 16:39:29 2026 +0800 arch/sim: add dedicated camera loop interval config Add SIM_CAMERA_LOOP_INTERVAL Kconfig option to allow configuring the camera loop interval independently from the general SIM_LOOP_INTERVAL. Update sim_camera.c to use the new config. Signed-off-by: yangsong8 <[email protected]> --- arch/sim/Kconfig | 6 ++++++ arch/sim/src/sim/sim_camera.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/sim/Kconfig b/arch/sim/Kconfig index 11024aabf7a..bf9f3828628 100644 --- a/arch/sim/Kconfig +++ b/arch/sim/Kconfig @@ -228,6 +228,12 @@ config SIM_LOOP_INTERVAL ---help--- Loop event sleep time +config SIM_CAMERA_LOOP_INTERVAL + int "Simulator camera loop interval in ms" + default 10 + ---help--- + Simulator camera loop event sleep time + config SIM_STACKSIZE_ADJUSTMENT int "The adjustment of stack size for sim" default 65536 diff --git a/arch/sim/src/sim/sim_camera.c b/arch/sim/src/sim/sim_camera.c index bfa9e464f8f..1a5be4fc6d2 100644 --- a/arch/sim/src/sim/sim_camera.c +++ b/arch/sim/src/sim/sim_camera.c @@ -45,7 +45,7 @@ * Pre-processor Definitions ****************************************************************************/ -#define SIM_CAMERA_PERIOD MSEC2TICK(CONFIG_SIM_LOOP_INTERVAL) +#define SIM_CAMERA_PERIOD MSEC2TICK(CONFIG_SIM_CAMERA_LOOP_INTERVAL) /**************************************************************************** * Private Types
