diff --git a/include/nuttx/timers/timer.h b/include/nuttx/timers/timer.h index c78ec97bb07..b1c087156e3 100644 --- a/include/nuttx/timers/timer.h +++ b/include/nuttx/timers/timer.h @@ -56,6 +56,7 @@ ****************************************************************************/ /* IOCTL Commands ***********************************************************/ + /* The timer driver uses a standard character driver framework. However, * since the timer driver is a device control interface and not a data * transfer interface, the majority of the functionality is implemented in @@ -68,7 +69,8 @@ * TCIOC_STOP - Stop the timer * Argument: Ignored * TCIOC_GETSTATUS - Get the status of the timer. - * Argument: A writeable pointer to struct timer_status_s. + * Argument: A writeable pointer to struct + * timer_status_s. * TCIOC_SETTIMEOUT - Reset the timer timeout to this value * Argument: A 32-bit timeout value in microseconds. * TCIOC_NOTIFICATION - Set up to notify an application via a signal when @@ -95,6 +97,7 @@ #define TCIOC_MAXTIMEOUT _TCIOC(0x0006) /* Bit Settings *************************************************************/ + /* Bit settings for the struct timer_status_s flags field */ #define TCFLAGS_ACTIVE (1 << 0) /* 1=The timer is running */ @@ -138,7 +141,8 @@ struct timer_notify_s struct timer_lowerhalf_s; struct timer_ops_s { - /* Required methods ********************************************************/ + /* Required methods *******************************************************/ + /* Start the timer, resetting the time to the current timeout */ CODE int (*start)(FAR struct timer_lowerhalf_s *lower); @@ -214,6 +218,7 @@ extern "C" /**************************************************************************** * "Upper-Half" Timer Driver Interfaces ****************************************************************************/ + /**************************************************************************** * Name: timer_register * @@ -287,9 +292,7 @@ void timer_unregister(FAR void *handle); * ****************************************************************************/ -#ifdef __KERNEL__ int timer_setcallback(FAR void *handle, tccb_t callback, FAR void *arg); -#endif /**************************************************************************** * Platform-Independent "Lower-Half" Timer Driver Interfaces