no-OS
drivers
platform
mbed
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
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions are met:
8
*
9
* 1. Redistributions of source code must retain the above copyright notice,
10
* this list of conditions and the following disclaimer.
11
*
12
* 2. Redistributions in binary form must reproduce the above copyright notice,
13
* this list of conditions and the following disclaimer in the documentation
14
* and/or other materials provided with the distribution.
15
*
16
* 3. Neither the name of Analog Devices, Inc. nor the names of its
17
* contributors may be used to endorse or promote products derived from this
18
* software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR
21
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
23
* EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
24
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
26
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
*******************************************************************************/
31
32
#ifndef MBED_TIMER_H_
33
#define MBED_TIMER_H_
34
35
// Platform support needs to be C-compatible to work with other drivers
36
#ifdef __cplusplus
37
extern
"C"
38
{
39
#endif
40
41
/*****************************************************************************/
42
/***************************** Include Files *********************************/
43
/*****************************************************************************/
44
45
#include "stdint.h"
46
47
/******************************************************************************/
48
/********************** Variables and User defined data types *****************/
49
/******************************************************************************/
50
55
struct
mbed_timer_desc
{
56
void
*
timer
;
// Object to the mbed Timer class
57
};
58
62
extern
const
struct
no_os_timer_platform_ops
mbed_timer_ops
;
63
64
/******************************************************************************/
65
/*****************************Function Declarations****************************/
66
/******************************************************************************/
67
68
#ifdef __cplusplus // Closing extern c
69
}
70
#endif
71
72
#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:101
mbed_timer_desc::timer
void * timer
Definition:
mbed_timer.h:56
mbed_timer_desc
Structure holding the mbed specific Timer parameters.
Definition:
mbed_timer.h:55
mbed_timer_ops
const struct no_os_timer_platform_ops mbed_timer_ops
Mbed platform specific timer platform ops structure.
Generated by
1.8.17