nuttx-apps/benchmarks/cyclictest/Kconfig
Stepan Pressl 31daca45ba benchmarks/cyclictest: the rt-tests cyclictest NuttX Port
Despite the existence of the patch in benchmarks/rt-tests,
this commit adds the NuttX Official cyclictest utility.

The main difference is the introduction of different
waiting methods next to POSIX clock_nanosleep:
- The thread can wait for a g_waitsem, posted by board_timerhook()
  if CONFIG_SYSTEMTICK_HOOK is defined.
  Since the semaphore is only one, only one thread can wait.
- The thread can wait for a Timer Device to timeout.
  The timer's timeout determines the waiting time of the thread.
  Since the timer is only one, again, only one thread can wait.

The user can measure the elapsed time using clock_gettime
or the timer device itself. The different waiting and measuring
methods were introduced because NuttX, by default, does not
offer fine measuring capabilities using POSIX time functions
(as of Feb 25).

Signed-off-by: Stepan Pressl <pressl.stepan@gmail.com>
2025-02-27 11:30:37 -03:00

29 lines
665 B
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
menuconfig BENCHMARK_CYCLICTEST
bool "Cyclictest"
default n
---help---
Enable the cyclictest application.
if BENCHMARK_CYCLICTEST
config BENCHMARK_CYCLICTEST_PROGNAME
string "Cyclictest App Name"
default "cyclictest"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
config BENCHMARK_CYCLICTEST_PRIORITY
int "Cyclictest task priority"
default 100
config BENCHMARK_CYCLICTEST_STACKSIZE
int "Cyclictest task stack size"
default 4096
endif # BENCHMARK_CYCLICTEST