diff --git a/arch/sim/Kconfig b/arch/sim/Kconfig index 1d42f1c83b..fd44688dd2 100644 --- a/arch/sim/Kconfig +++ b/arch/sim/Kconfig @@ -140,6 +140,13 @@ config SIM_WALLTIME_SIGNAL endchoice +config SIM_LOOPTASK_PRIORITY + int "looptask priority" + default SCHED_HPWORKPRIORITY if SCHED_HPWORK + default 255 if !SCHED_HPWORK + ---help--- + Looptask priority + config SIM_LOOPTASK_INTERVAL int "looptask interval in us" default 10000 diff --git a/arch/sim/src/sim/sim_initialize.c b/arch/sim/src/sim/sim_initialize.c index 6f5718a7a6..4b5e292a3b 100644 --- a/arch/sim/src/sim/sim_initialize.c +++ b/arch/sim/src/sim/sim_initialize.c @@ -310,7 +310,7 @@ void up_initialize(void) sim_usbhost_initialize(); #endif - kthread_create("loop_task", SCHED_PRIORITY_MAX, + kthread_create("loop_task", CONFIG_SIM_LOOPTASK_PRIORITY, CONFIG_DEFAULT_TASK_STACKSIZE, sim_loop_task, NULL); }