mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
examples/nxscope: make main interval configurable
This commit is contained in:
parent
aa49523bb3
commit
5cfcd769bf
2 changed files with 8 additions and 1 deletions
|
|
@ -68,6 +68,13 @@ config EXAMPLES_NXSCOPE_TIMER
|
|||
bool "nxscope use timer to wake up samples thread"
|
||||
default n
|
||||
|
||||
config EXAMPLES_NXSCOPE_MAIN_INTERVAL
|
||||
int "nxscope main interval (microseconds)"
|
||||
default 100000
|
||||
---help---
|
||||
This value is responsible for the frequency at which stream
|
||||
frames will be sent and incoming frames will be received.
|
||||
|
||||
if EXAMPLES_NXSCOPE_TIMER
|
||||
|
||||
config EXAMPLES_NXSCOPE_TIMER_PATH
|
||||
|
|
|
|||
|
|
@ -698,7 +698,7 @@ int main(int argc, FAR char *argv[])
|
|||
printf("ERROR: nxscope_recv failed %d\n", ret);
|
||||
}
|
||||
|
||||
usleep(100000);
|
||||
usleep(CONFIG_EXAMPLES_NXSCOPE_MAIN_INTERVAL);
|
||||
}
|
||||
|
||||
errout:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue