drivers/timers: rename oneshot to periodic notification parameter

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2022-03-15 13:21:59 +01:00 committed by Xiang Xiao
parent 40f056e92c
commit 0df313974c
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
/****************************************************************************

View File

@ -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