2019-06-14 20:40:06 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* arch/arm/include/cxd56xx/timer.h
|
|
|
|
*
|
2021-03-31 18:53:35 +02:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2019-06-14 20:40:06 +02:00
|
|
|
*
|
2021-03-31 18:53:35 +02:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2019-06-14 20:40:06 +02:00
|
|
|
*
|
2021-03-31 18:53:35 +02:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2019-06-14 20:40:06 +02:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __ARCH_ARM_INCLUDE_CXD56XX_TIMER_H
|
|
|
|
#define __ARCH_ARM_INCLUDE_CXD56XX_TIMER_H
|
|
|
|
|
2020-04-14 12:50:12 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
2019-06-14 20:40:06 +02:00
|
|
|
#include <nuttx/timers/timer.h>
|
|
|
|
|
|
|
|
/****************************************************************************
|
2021-03-21 11:37:01 +01:00
|
|
|
* Pre-processor Prototypes
|
2019-06-14 20:40:06 +02:00
|
|
|
****************************************************************************/
|
|
|
|
|
2020-04-14 12:50:12 +02:00
|
|
|
/* Set callback handler
|
2019-06-14 20:40:06 +02:00
|
|
|
*
|
2019-06-18 14:46:43 +02:00
|
|
|
* param A pointer to struct timer_sethandler_s
|
|
|
|
* return ioctl return value provides success/failure indication
|
2019-06-14 20:40:06 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#define TCIOC_SETHANDLER _TCIOC(0x0020)
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Types
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/* This is the type of the argument passed to the TCIOC_SETHANDLER ioctl */
|
|
|
|
|
|
|
|
struct timer_sethandler_s
|
|
|
|
{
|
|
|
|
FAR void *arg; /* An argument */
|
|
|
|
CODE tccb_t handler; /* The timer interrupt handler */
|
|
|
|
};
|
|
|
|
|
2020-01-31 19:07:39 +01:00
|
|
|
#endif /* __ARCH_ARM_INCLUDE_CXD56XX_TIMER_H */
|