timers/timer.c:397:19: Fix warning: implicit declaration of function 'timer_setcallback'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-08-18 17:23:04 +08:00 committed by Abdelatif Guettouche
parent 3d0cdc3d95
commit 8db91a7974
1 changed files with 7 additions and 4 deletions

View File

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