mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
sim: set loop task duration to 10ms
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user