RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
include
grlib
irqamp.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
10
11
/*
12
* Copyright (C) 2021 embedded brains GmbH & Co. KG
13
*
14
* Redistribution and use in source and binary forms, with or without
15
* modification, are permitted provided that the following conditions
16
* are met:
17
* 1. Redistributions of source code must retain the above copyright
18
* notice, this list of conditions and the following disclaimer.
19
* 2. Redistributions in binary form must reproduce the above copyright
20
* notice, this list of conditions and the following disclaimer in the
21
* documentation and/or other materials provided with the distribution.
22
*
23
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
* POSSIBILITY OF SUCH DAMAGE.
34
*/
35
36
/*
37
* This file is part of the RTEMS quality process and was automatically
38
* generated. If you find something that needs to be fixed or
39
* worded better please post a report or patch to an RTEMS mailing list
40
* or raise a bug report:
41
*
42
* https://www.rtems.org/bugs.html
43
*
44
* For information on updating and regenerating please refer to the How-To
45
* section in the Software Requirements Engineering chapter of the
46
* RTEMS Software Engineering manual. The manual is provided as a part of
47
* a release. For development sources please refer to the online
48
* documentation at:
49
*
50
* https://docs.rtems.org
51
*/
52
53
/* Generated from spec:/dev/grlib/if/irqamp-header-2 */
54
55
#ifndef _GRLIB_IRQAMP_H
56
#define _GRLIB_IRQAMP_H
57
58
#include <stddef.h>
59
#include <grlib/io.h>
60
#include <
grlib/irqamp-regs.h
>
61
62
#ifdef __cplusplus
63
extern
"C"
{
64
#endif
65
66
/* Generated from spec:/dev/grlib/if/irqamp-get-timestamp */
67
80
static
inline
irqamp_timestamp
*irqamp_get_timestamp_registers(
81
irqamp
*irqamp_regs
82
)
83
{
84
irqamp_timestamp
*timestamp_regs;
85
uint32_t itstmpc;
86
87
timestamp_regs = &irqamp_regs->
itstmp
[ 0 ];
88
itstmpc = grlib_load_32( ×tamp_regs->
itstmpc
);
89
90
if
( IRQAMP_ITSTMPC_TSTAMP_GET( itstmpc ) == 0 ) {
91
return
NULL;
92
}
93
94
return
timestamp_regs;
95
}
96
97
#ifdef __cplusplus
98
}
99
#endif
100
101
#endif
/* _GRLIB_IRQAMP_H */
irqamp-regs.h
This header file defines the IRQAMP register block interface.
irqamp_timestamp
This structure defines the IRQ(A)MP Timestamp register block memory map.
Definition
irqamp-regs.h:195
irqamp_timestamp::itstmpc
uint32_t itstmpc
See Interrupt timestamp n control register (ITSTMPC).
Definition
irqamp-regs.h:204
irqamp
This structure defines the IRQ(A)MP register block memory map.
Definition
irqamp-regs.h:780
irqamp::itstmp
irqamp_timestamp itstmp[16]
See IRQ(A)MP Timestamp.
Definition
irqamp-regs.h:851
Generated by
1.18.0