This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 5cfcd769bf4acab173a978960f2f99b1ab595c7e Author: raiden00pl <[email protected]> AuthorDate: Sat Dec 2 18:50:21 2023 +0100 examples/nxscope: make main interval configurable --- examples/nxscope/Kconfig | 7 +++++++ examples/nxscope/nxscope_main.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/nxscope/Kconfig b/examples/nxscope/Kconfig index 1d453d2de..7bc3c7802 100644 --- a/examples/nxscope/Kconfig +++ b/examples/nxscope/Kconfig @@ -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 diff --git a/examples/nxscope/nxscope_main.c b/examples/nxscope/nxscope_main.c index 6a63e2c69..8863b51ed 100644 --- a/examples/nxscope/nxscope_main.c +++ b/examples/nxscope/nxscope_main.c @@ -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:
