mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 07:15:20 +00:00
timer: rename tick_settimeouot to tick_settimeout
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:
parent
69d4e4101f
commit
f215bf6c67
1 changed files with 4 additions and 4 deletions
|
|
@ -111,7 +111,7 @@
|
|||
((l)->ops->settimeout ? (l)->ops->settimeout(l,t) : timer_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) \
|
||||
((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) */
|
||||
|
||||
CODE int (*tick_setttimeout)(FAR struct timer_lowerhalf_s *lower,
|
||||
CODE int (*tick_settimeout)(FAR struct timer_lowerhalf_s *lower,
|
||||
uint32_t timeout);
|
||||
|
||||
/* Get the maximum supported tick timeout value */
|
||||
|
|
@ -276,12 +276,12 @@ static inline
|
|||
int timer_settimeout(FAR struct timer_lowerhalf_s *lower,
|
||||
uint32_t timeout)
|
||||
{
|
||||
if (lower->ops->tick_setttimeout == NULL)
|
||||
if (lower->ops->tick_settimeout == NULL)
|
||||
{
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
return lower->ops->tick_setttimeout(lower, USEC2TICK(timeout));
|
||||
return lower->ops->tick_settimeout(lower, USEC2TICK(timeout));
|
||||
}
|
||||
|
||||
static inline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue