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.git

commit 39d9eb2343631e007da1b7beefefe731acdd6712
Author: ouyangxiangzhen <[email protected]>
AuthorDate: Tue Nov 4 21:09:20 2025 +0800

    timers: Fix typo.
    
    This commit fixed typo in clkcnt.h and oneshot.h
    
    Signed-off-by: ouyangxiangzhen <[email protected]>
---
 include/nuttx/timers/oneshot.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/nuttx/timers/oneshot.h b/include/nuttx/timers/oneshot.h
index be5b48dbdf2..f72ca4372f3 100644
--- a/include/nuttx/timers/oneshot.h
+++ b/include/nuttx/timers/oneshot.h
@@ -316,7 +316,7 @@ uint32_t oneshot_delta_cnt2nsec(FAR struct 
oneshot_lowerhalf_s *lower,
   DEBUGASSERT(delta <= lower->frequency);
 
   /* Here we use a multiply-shift method to convert the clock
-   * count to nanoseconds. This will reduce at least one divsion
+   * count to nanoseconds. This will reduce at least one division
    * operation and improve the performance. Note that this is an
    * approximate method that trades accuracy for performance, it may lead
    * to 1-3 nanoseconds of error when converting the cycles that
@@ -337,7 +337,7 @@ clock_t oneshot_delta_cnt2tick(FAR struct 
oneshot_lowerhalf_s *lower,
   DEBUGASSERT(delta <= lower->frequency);
 
   /* Be careful of using mult-shift fast converting here.
-   * Since ticks are realted to the scheduling, inaccurate converting
+   * Since ticks are related to the scheduling, inaccurate converting
    * results may lead to wrong scheduling.
    */
 
@@ -526,7 +526,7 @@ int oneshot_start_absolute(FAR struct oneshot_lowerhalf_s 
*lower,
   return ret;
 }
 
-/* Tick-based compatiable layer for oneshot */
+/* Tick-based compatible layer for oneshot */
 
 static inline_function
 int oneshot_tick_max_delay(FAR struct oneshot_lowerhalf_s *lower,

Reply via email to