diff --git a/arch/sim/Kconfig b/arch/sim/Kconfig index 9547d3cb2c..d221f2ba0e 100644 --- a/arch/sim/Kconfig +++ b/arch/sim/Kconfig @@ -140,6 +140,12 @@ config SIM_WALLTIME_SIGNAL endchoice +config SIM_LOOPTASK_INTERVAL + int "looptask interval in us" + default 10000 + ---help--- + Looptask sleep time + config SIM_STACKSIZE_ADJUSTMENT int "The adjustment of stack size for sim" default 65536 diff --git a/arch/sim/src/sim/sim_initialize.c b/arch/sim/src/sim/sim_initialize.c index ade385e3e8..9ae9df4e58 100644 --- a/arch/sim/src/sim/sim_initialize.c +++ b/arch/sim/src/sim/sim_initialize.c @@ -218,7 +218,7 @@ static int sim_loop_task(int argc, char **argv) /* Sleep minimal time, let the idle run */ - usleep(USEC_PER_TICK); + usleep(CONFIG_SIM_LOOPTASK_INTERVAL); } return 0;