no-OS
mbed_timer.h
Go to the documentation of this file.
1 /***************************************************************************//*
2  * @file mbed_timer.h
3  * @brief Header containing extra types for Timer interface
4 ******************************************************************************
5  * Copyright (c) 2021-22 Analog Devices, Inc.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are met:
10  * - Redistributions of source code must retain the above copyright
11  * notice, this list of conditions and the following disclaimer.
12  * - Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in
14  * the documentation and/or other materials provided with the
15  * distribution.
16  * - Neither the name of Analog Devices, Inc. nor the names of its
17  * contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  * - The use of this software may or may not infringe the patent rights
20  * of one or more patent holders. This license does not release you
21  * from the requirement that you obtain separate licenses from these
22  * patent holders to use this software.
23  * - Use of the software either in source or binary form, must be run
24  * on or directly connected to an Analog Devices Inc. component.
25  *
26  * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
27  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
28  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29  * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
30  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31  * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
32  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
34  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *******************************************************************************/
37 
38 #ifndef MBED_TIMER_H_
39 #define MBED_TIMER_H_
40 
41 // Platform support needs to be C-compatible to work with other drivers
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif
46 
47 /*****************************************************************************/
48 /***************************** Include Files *********************************/
49 /*****************************************************************************/
50 
51 #include "stdint.h"
52 
53 /******************************************************************************/
54 /********************** Variables and User defined data types *****************/
55 /******************************************************************************/
56 
62  void *timer; // Object to the mbed Timer class
63 };
64 
68 extern const struct no_os_timer_platform_ops mbed_timer_ops;
69 
70 /******************************************************************************/
71 /*****************************Function Declarations****************************/
72 /******************************************************************************/
73 
74 #ifdef __cplusplus // Closing extern c
75 }
76 #endif
77 
78 #endif /*MBED_TIMER_H_ */
no_os_timer_platform_ops
Structure holding timer function pointers that point to the platform specific function.
Definition: no_os_timer.h:107
mbed_timer_desc::timer
void * timer
Definition: mbed_timer.h:62
mbed_timer_desc
Structure holding the mbed specific Timer parameters.
Definition: mbed_timer.h:61
mbed_timer_ops
const struct no_os_timer_platform_ops mbed_timer_ops
Mbed platform specific timer platform ops structure.