Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
mchp-xec-ecia.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Microchip Technology
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef __DT_BINDING_MCHP_XEC_ECIA_H
7
#define __DT_BINDING_MCHP_XEC_ECIA_H
8
9
/*
10
* Encode peripheral interrupt information into a 32-bit unsigned.
11
* g = bits[0:4], GIRQ number in [8, 26]
12
* gb = bits[12:8], peripheral source bit position [0, 31] in the GIRQ
13
* na = bits[23:16], aggregated GIRQ NVIC number
14
* nd = bits[31:24], direct NVIC number. For sources without a direct
15
* connection nd = na.
16
* NOTE: GIRQ22 is a peripheral clock wake only. GIRQ22 and its sources
17
* are not connected to the NVIC. Use 255 for na and nd.
18
*/
19
#define MCHP_XEC_ECIA(g, gb, na, nd) \
20
(((g) & 0x1f) + (((gb) & 0x1f) << 8) + (((na) & 0xff) << 16) + \
21
(((nd) & 0xff) << 24))
19
#define MCHP_XEC_ECIA(g, gb, na, nd) \
…
22
23
/* extract specific information from encoded MCHP_XEC_ECIA */
24
#define MCHP_XEC_ECIA_GIRQ(e) ((e) & 0x1f)
25
#define MCHP_XEC_ECIA_GIRQ_POS(e) (((e) >> 8) & 0x1f)
26
#define MCHP_XEC_ECIA_NVIC_AGGR(e) (((e) >> 16) & 0xff)
27
#define MCHP_XEC_ECIA_NVIC_DIRECT(e) (((e) >> 24) & 0xff)
28
29
#endif
/* __DT_BINDING_MCHP_XEC_ECIA_H */
zephyr
dt-bindings
interrupt-controller
mchp-xec-ecia.h
Generated on Mon Mar 17 2025 00:05:48 for Zephyr API Documentation by
1.12.0