2016-11-17 22:04:14 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_TIMER
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "Timer example"
|
2016-11-17 22:04:14 +01:00
|
|
|
default n
|
2020-04-29 16:40:56 +02:00
|
|
|
depends on TIMER
|
2016-11-17 22:04:14 +01:00
|
|
|
---help---
|
|
|
|
Enable the timer example
|
|
|
|
|
|
|
|
if EXAMPLES_TIMER
|
|
|
|
|
2017-08-24 21:37:36 +02:00
|
|
|
config EXAMPLES_TIMER_DEVNAME
|
2016-11-17 22:04:14 +01:00
|
|
|
string "Timer device name"
|
|
|
|
default "/dev/timer0"
|
|
|
|
---help---
|
|
|
|
This is the name of the timer device that will be tested.
|
|
|
|
|
2017-08-24 21:37:36 +02:00
|
|
|
config EXAMPLES_TIMER_INTERVAL
|
2016-11-17 22:04:14 +01:00
|
|
|
int "Timer interval (microseconds)"
|
|
|
|
default 1000000
|
|
|
|
---help---
|
|
|
|
This is the timer interval in microseconds.
|
|
|
|
|
2017-08-24 21:37:36 +02:00
|
|
|
config EXAMPLES_TIMER_DELAY
|
2016-11-17 22:04:14 +01:00
|
|
|
int "Sample delay (microseconds)"
|
|
|
|
default 100000
|
|
|
|
---help---
|
|
|
|
This is the delay between timer samples in microseconds
|
|
|
|
|
2017-08-24 21:37:36 +02:00
|
|
|
config EXAMPLES_TIMER_NSAMPLES
|
2016-11-17 22:04:14 +01:00
|
|
|
int "Number of samples"
|
|
|
|
default 20
|
|
|
|
---help---
|
|
|
|
This is the number of timer samples that will be collected
|
|
|
|
|
2017-08-24 21:37:36 +02:00
|
|
|
config EXAMPLES_TIMER_SIGNO
|
2016-11-18 15:17:15 +01:00
|
|
|
int "Notification signal number"
|
|
|
|
default 17
|
|
|
|
---help---
|
|
|
|
This is the signal number that is used to notify the test of
|
|
|
|
timer expiration events.
|
|
|
|
|
2016-11-17 22:04:14 +01:00
|
|
|
config EXAMPLES_TIMER_STACKSIZE
|
|
|
|
int "Timer stack size"
|
2020-03-27 06:10:33 +01:00
|
|
|
default DEFAULT_TASK_STACKSIZE
|
2016-11-17 22:04:14 +01:00
|
|
|
---help---
|
|
|
|
This is the stack size allocated when the timer task runs
|
|
|
|
|
|
|
|
config EXAMPLES_TIMER_PRIORITY
|
|
|
|
int "Timer task priority"
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
This is the priority of the timer task
|
|
|
|
|
|
|
|
config EXAMPLES_TIMER_PROGNAME
|
|
|
|
string "Timer program name"
|
|
|
|
default "timer"
|
|
|
|
---help---
|
2019-08-23 19:59:28 +02:00
|
|
|
This is the name of the program that will be used when the NSH ELF
|
2016-11-17 22:04:14 +01:00
|
|
|
program is installed.
|
|
|
|
|
|
|
|
endif
|