From 0df313974c99d7a89f1a0ed15b05c638a4a7bb6e Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Tue, 15 Mar 2022 13:21:59 +0100 Subject: [PATCH] drivers/timers: rename oneshot to periodic notification parameter Signed-off-by: Petro Karashchenko --- drivers/timers/timer.c | 2 +- include/nuttx/timers/timer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/timers/timer.c b/drivers/timers/timer.c index 03d94a29a2..b6054003b8 100644 --- a/drivers/timers/timer.c +++ b/drivers/timers/timer.c @@ -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); - return !notify->oneshot; + return notify->periodic; } /**************************************************************************** diff --git a/include/nuttx/timers/timer.h b/include/nuttx/timers/timer.h index 5b149a0b38..3b9ba2edea 100644 --- a/include/nuttx/timers/timer.h +++ b/include/nuttx/timers/timer.h @@ -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