zdebanos opened a new pull request, #3000: URL: https://github.com/apache/nuttx-apps/pull/3000
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). ## Summary Instead of a simple patch, NuttX now has an official `cyclictest` utility port. The new cyclictest was introduced due to limited fine measuring capabilities using POSIX time functions (`clock_gettime` and `clock_nanosleep`). Also this port adheres to the NuttX coding style. ## Impact Might be used in CI/CD to test the RT capabilities of NuttX. ## Testing Locally on a custom ATSAMV7 board. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org