drivers/timers: rename oneshot to periodic notification parameter
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
40f056e92c
commit
0df313974c
@ -121,7 +121,7 @@ static bool timer_notifier(FAR uint32_t *next_interval_us, FAR void *arg)
|
|||||||
|
|
||||||
nxsig_notification(notify->pid, ¬ify->event, SI_QUEUE, &upper->work);
|
nxsig_notification(notify->pid, ¬ify->event, SI_QUEUE, &upper->work);
|
||||||
|
|
||||||
return !notify->oneshot;
|
return notify->periodic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -116,7 +116,7 @@ struct timer_notify_s
|
|||||||
{
|
{
|
||||||
struct sigevent event; /* Describe the way a task is to be notified */
|
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 */
|
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
|
/* This structure provides the "lower-half" driver operations available to
|
||||||
|
Loading…
Reference in New Issue
Block a user