mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
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:
committed by
Abdelatif Guettouche
parent
3d0cdc3d95
commit
8db91a7974
@@ -56,6 +56,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* IOCTL Commands ***********************************************************/
|
/* IOCTL Commands ***********************************************************/
|
||||||
|
|
||||||
/* The timer driver uses a standard character driver framework. However,
|
/* The timer driver uses a standard character driver framework. However,
|
||||||
* since the timer driver is a device control interface and not a data
|
* since the timer driver is a device control interface and not a data
|
||||||
* transfer interface, the majority of the functionality is implemented in
|
* transfer interface, the majority of the functionality is implemented in
|
||||||
@@ -68,7 +69,8 @@
|
|||||||
* TCIOC_STOP - Stop the timer
|
* TCIOC_STOP - Stop the timer
|
||||||
* Argument: Ignored
|
* Argument: Ignored
|
||||||
* TCIOC_GETSTATUS - Get the status of the timer.
|
* 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
|
* TCIOC_SETTIMEOUT - Reset the timer timeout to this value
|
||||||
* Argument: A 32-bit timeout value in microseconds.
|
* Argument: A 32-bit timeout value in microseconds.
|
||||||
* TCIOC_NOTIFICATION - Set up to notify an application via a signal when
|
* TCIOC_NOTIFICATION - Set up to notify an application via a signal when
|
||||||
@@ -95,6 +97,7 @@
|
|||||||
#define TCIOC_MAXTIMEOUT _TCIOC(0x0006)
|
#define TCIOC_MAXTIMEOUT _TCIOC(0x0006)
|
||||||
|
|
||||||
/* Bit Settings *************************************************************/
|
/* Bit Settings *************************************************************/
|
||||||
|
|
||||||
/* Bit settings for the struct timer_status_s flags field */
|
/* Bit settings for the struct timer_status_s flags field */
|
||||||
|
|
||||||
#define TCFLAGS_ACTIVE (1 << 0) /* 1=The timer is running */
|
#define TCFLAGS_ACTIVE (1 << 0) /* 1=The timer is running */
|
||||||
@@ -138,7 +141,8 @@ struct timer_notify_s
|
|||||||
struct timer_lowerhalf_s;
|
struct timer_lowerhalf_s;
|
||||||
struct timer_ops_s
|
struct timer_ops_s
|
||||||
{
|
{
|
||||||
/* Required methods ********************************************************/
|
/* Required methods *******************************************************/
|
||||||
|
|
||||||
/* Start the timer, resetting the time to the current timeout */
|
/* Start the timer, resetting the time to the current timeout */
|
||||||
|
|
||||||
CODE int (*start)(FAR struct timer_lowerhalf_s *lower);
|
CODE int (*start)(FAR struct timer_lowerhalf_s *lower);
|
||||||
@@ -214,6 +218,7 @@ extern "C"
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* "Upper-Half" Timer Driver Interfaces
|
* "Upper-Half" Timer Driver Interfaces
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: timer_register
|
* 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);
|
int timer_setcallback(FAR void *handle, tccb_t callback, FAR void *arg);
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Platform-Independent "Lower-Half" Timer Driver Interfaces
|
* Platform-Independent "Lower-Half" Timer Driver Interfaces
|
||||||
|
|||||||
Reference in New Issue
Block a user