mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
timer: rename tick_settimeouot to tick_settimeout
Build Documentation / build-html (push) Has been cancelled
Build Documentation / build-html (push) Has been cancelled
Fix the misspelling of the tick timeout API name (tick_settimeouot -> tick_settimeout) for clarity and correctness. This corrects a typographical error in the function/config name that could lead to confusion and incorrect usage. No functional logic is changed by this rename. Signed-off-by: zhaohaiyang1 <zhaohaiyang1@xiaomi.com>
This commit is contained in:
@@ -111,7 +111,7 @@
|
|||||||
((l)->ops->settimeout ? (l)->ops->settimeout(l,t) : timer_settimeout(l,t))
|
((l)->ops->settimeout ? (l)->ops->settimeout(l,t) : timer_settimeout(l,t))
|
||||||
|
|
||||||
#define TIMER_TICK_SETTIMEOUT(l,t) \
|
#define TIMER_TICK_SETTIMEOUT(l,t) \
|
||||||
((l)->ops->tick_setttimeout ? (l)->ops->tick_setttimeout(l,t) : timer_tick_settimeout(l,t))
|
((l)->ops->tick_settimeout ? (l)->ops->tick_settimeout(l,t) : timer_tick_settimeout(l,t))
|
||||||
|
|
||||||
#define TIMER_MAXTIMEOUT(l,t) \
|
#define TIMER_MAXTIMEOUT(l,t) \
|
||||||
((l)->ops->maxtimeout ? (l)->ops->maxtimeout(l,t) : timer_maxtimeout(l,t))
|
((l)->ops->maxtimeout ? (l)->ops->maxtimeout(l,t) : timer_maxtimeout(l,t))
|
||||||
@@ -209,7 +209,7 @@ struct timer_ops_s
|
|||||||
|
|
||||||
/* Set a new tick timeout value of (and reset the timer) */
|
/* Set a new tick timeout value of (and reset the timer) */
|
||||||
|
|
||||||
CODE int (*tick_setttimeout)(FAR struct timer_lowerhalf_s *lower,
|
CODE int (*tick_settimeout)(FAR struct timer_lowerhalf_s *lower,
|
||||||
uint32_t timeout);
|
uint32_t timeout);
|
||||||
|
|
||||||
/* Get the maximum supported tick timeout value */
|
/* Get the maximum supported tick timeout value */
|
||||||
@@ -276,12 +276,12 @@ static inline
|
|||||||
int timer_settimeout(FAR struct timer_lowerhalf_s *lower,
|
int timer_settimeout(FAR struct timer_lowerhalf_s *lower,
|
||||||
uint32_t timeout)
|
uint32_t timeout)
|
||||||
{
|
{
|
||||||
if (lower->ops->tick_setttimeout == NULL)
|
if (lower->ops->tick_settimeout == NULL)
|
||||||
{
|
{
|
||||||
return -ENOTSUP;
|
return -ENOTSUP;
|
||||||
}
|
}
|
||||||
|
|
||||||
return lower->ops->tick_setttimeout(lower, USEC2TICK(timeout));
|
return lower->ops->tick_settimeout(lower, USEC2TICK(timeout));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
|
|||||||
Reference in New Issue
Block a user