Skip to content

Commit

Permalink
drivers/timers: rename oneshot to periodic notification parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
  • Loading branch information
pkarashchenko authored and xiaoxiang781216 committed Mar 15, 2022
1 parent 40f056e commit 0df3139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/timers/timer.c
Expand Up @@ -121,7 +121,7 @@ static bool timer_notifier(FAR uint32_t *next_interval_us, FAR void *arg)

nxsig_notification(notify->pid, &notify->event, SI_QUEUE, &upper->work);

return !notify->oneshot;
return notify->periodic;
}

/****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion include/nuttx/timers/timer.h
Expand Up @@ -116,7 +116,7 @@ struct timer_notify_s
{
struct sigevent event; /* Describe the way a task is to be notified */
pid_t pid; /* The ID of the task/thread to receive the signal */
bool oneshot; /* Single notification or periodic notifications */
bool periodic; /* True for periodic notifications */
};

/* This structure provides the "lower-half" driver operations available to
Expand Down

0 comments on commit 0df3139

Please sign in to comment.