1
0
Эх сурвалжийг харах

[Kernel] fix typo in rthread_delay

Bernard Xiong 5 жил өмнө
parent
commit
2c1f7b73a7

+ 1 - 1
include/rtthread.h

@@ -138,7 +138,7 @@ rt_err_t rt_thread_delete(rt_thread_t thread);
 
 
 rt_err_t rt_thread_yield(void);
 rt_err_t rt_thread_yield(void);
 rt_err_t rt_thread_delay(rt_tick_t tick);
 rt_err_t rt_thread_delay(rt_tick_t tick);
-rt_err_t rt_thread_delay_util(rt_tick_t *tick, rt_tick_t inc_tick);
+rt_err_t rt_thread_delay_until(rt_tick_t *tick, rt_tick_t inc_tick);
 rt_err_t rt_thread_mdelay(rt_int32_t ms);
 rt_err_t rt_thread_mdelay(rt_int32_t ms);
 rt_err_t rt_thread_control(rt_thread_t thread, int cmd, void *arg);
 rt_err_t rt_thread_control(rt_thread_t thread, int cmd, void *arg);
 rt_err_t rt_thread_suspend(rt_thread_t thread);
 rt_err_t rt_thread_suspend(rt_thread_t thread);

+ 2 - 2
src/thread.c

@@ -531,14 +531,14 @@ rt_err_t rt_thread_delay(rt_tick_t tick)
 RTM_EXPORT(rt_thread_delay);
 RTM_EXPORT(rt_thread_delay);
 
 
 /**
 /**
- * This function will let current thread delay util (*tick + inc_tick).
+ * This function will let current thread delay until (*tick + inc_tick).
  *
  *
  * @param tick the tick of last wakeup.
  * @param tick the tick of last wakeup.
  * @param inc_tick the increment tick
  * @param inc_tick the increment tick
  *
  *
  * @return RT_EOK
  * @return RT_EOK
  */
  */
-rt_err_t rt_thread_delay_util(rt_tick_t *tick, rt_tick_t inc_tick)
+rt_err_t rt_thread_delay_until(rt_tick_t *tick, rt_tick_t inc_tick)
 {
 {
     register rt_base_t level;
     register rt_base_t level;
     struct rt_thread *thread;
     struct rt_thread *thread;