libpruio
0.6.8
Fast and easy Digital/Analog Input/Output for Beaglebones
pruio_intc.bi
Go to the documentation of this file.
1
9
10
11
#DEFINE
PRUIO_CHAN
CHANNEL5
12
13
#DEFINE
PRUIO_MASK
PRU_EVTOUT5_HOSTEN_MASK
14
15
#DEFINE
PRUIO_EMAP
PRU_EVTOUT5
16
17
#DEFINE
PRUIO_EVNT PRU_EVTOUT_5
18
19
'' Global defs
20
21
#DEFINE
PRU0_PRU1_INTERRUPT
17
22
23
#DEFINE
PRU1_PRU0_INTERRUPT
18
24
25
#DEFINE
PRU0_ARM_INTERRUPT
19
26
27
#DEFINE
PRU1_ARM_INTERRUPT
20
28
29
#DEFINE
ARM_PRU0_INTERRUPT
21
30
31
#DEFINE
ARM_PRU1_INTERRUPT
22
32
33
34
#DEFINE
CHANNEL0
0
35
36
#DEFINE
CHANNEL1
1
37
38
#DEFINE
CHANNEL2
2
39
40
#DEFINE
CHANNEL3
3
41
42
#DEFINE
CHANNEL4 4
43
44
#DEFINE
CHANNEL5 5
45
46
#DEFINE
CHANNEL6 6
47
48
#DEFINE
CHANNEL7 7
49
50
#DEFINE
CHANNEL8 8
51
52
#DEFINE
CHANNEL9 9
53
54
#DEFINE
PRU0
0
55
56
#DEFINE
PRU1
1
57
58
#DEFINE
PRU_EVTOUT0
2
59
60
#DEFINE
PRU_EVTOUT1
3
61
62
#DEFINE
PRU_EVTOUT2 4
63
64
#DEFINE
PRU_EVTOUT3 5
65
66
#DEFINE
PRU_EVTOUT4 6
67
68
#DEFINE
PRU_EVTOUT5 7
69
70
#DEFINE
PRU_EVTOUT6 8
71
72
#DEFINE
PRU_EVTOUT7 9
73
74
#DEFINE
PRU0_HOSTEN_MASK
&h0001
75
76
#DEFINE
PRU1_HOSTEN_MASK
&h0002
77
78
#DEFINE
PRU_EVTOUT0_HOSTEN_MASK
&h0004
79
80
#DEFINE
PRU_EVTOUT1_HOSTEN_MASK
&h0008
81
82
#DEFINE
PRU_EVTOUT2_HOSTEN_MASK &h0010
83
84
#DEFINE
PRU_EVTOUT3_HOSTEN_MASK &h0020
85
86
#DEFINE
PRU_EVTOUT4_HOSTEN_MASK &h0040
87
88
#DEFINE
PRU_EVTOUT5_HOSTEN_MASK &h0080
89
90
#DEFINE
PRU_EVTOUT6_HOSTEN_MASK &h0100
91
92
#DEFINE
PRU_EVTOUT7_HOSTEN_MASK &h0200
93
94
95
#DEFINE
NUM_PRU_HOSTIRQS 8
96
97
#DEFINE
NUM_PRU_HOSTS 10
98
99
#DEFINE
NUM_PRU_CHANNELS
10
100
101
#DEFINE
NUM_PRU_SYS_EVTS
64
102
103
#DEFINE
PRUSS0_PRU0_DRAM 0
104
105
#DEFINE
PRUSS0_PRU1_DRAM 1
106
107
#DEFINE
PRUSS0_PRU0_IRAM 2
108
109
#DEFINE
PRUSS0_PRU1_IRAM 3
110
111
#DEFINE
PRUSS0_SRAM 4
112
''*
113
'#DEFINE PRUSS0_CFG 5
114
''*
115
'#DEFINE PRUSS0_UART 6
116
''*
117
'#DEFINE PRUSS0_IEP 7
118
''*
119
'#DEFINE PRUSS0_ECAP 8
120
''*
121
'#DEFINE PRUSS0_MII_RT 9
122
''*
123
'#DEFINE PRUSS0_MDIO 10
124
125
#DEFINE
PRU_EVTOUT_0 0
126
127
#DEFINE
PRU_EVTOUT_1 1
128
129
#DEFINE
PRU_EVTOUT_2 2
130
131
#DEFINE
PRU_EVTOUT_3 3
132
133
#DEFINE
PRU_EVTOUT_4 4
134
135
#DEFINE
PRU_EVTOUT_5 5
136
137
#DEFINE
PRU_EVTOUT_6 6
138
139
#DEFINE
PRU_EVTOUT_7 7
140
141
142
149
TYPE
__Sysevt_to_Channel_map
150
AS
Int16
_
151
sysevt
_
152
,
channel
153
END TYPE
154
155
156
TYPE
tsysevt_to_channel_map
AS
__Sysevt_to_Channel_map
157
158
165
TYPE
__Channel_to_Host_map
166
AS
Int16
_
167
channel
_
168
,
host
169
END TYPE
170
171
172
TYPE
tchannel_to_host_map
AS
__Channel_to_Host_map
173
174
181
TYPE
__Pruss_intc_Initdata
182
AS
Int8
sysevts_enabled
(
NUM_PRU_SYS_EVTS
-1)
183
AS
tsysevt_to_channel_map
sysevt_to_channel_map
(
NUM_PRU_SYS_EVTS
-1)
184
AS
tchannel_to_host_map
channel_to_host_map
(
NUM_PRU_CHANNELS
-1)
185
AS
UInt32
host_enable_bitmask
186
END TYPE
187
188
189
TYPE
tpruss_intc_initdata
AS
__Pruss_intc_Initdata
190
191
DIM SHARED AS
tpruss_intc_initdata
DEF_INTC_INIT
= _
192
TYPE
<
tpruss_intc_initdata
>( _
193
{
PRU0_PRU1_INTERRUPT
_
194
,
PRU1_PRU0_INTERRUPT
_
195
,
PRU0_ARM_INTERRUPT
_
196
,
PRU1_ARM_INTERRUPT
_
197
,
ARM_PRU0_INTERRUPT
_
198
,
ARM_PRU1_INTERRUPT
_
199
,
PRUIO_IRPT
_
200
,
CAST
(
BYTE
, -1) }, _
201
{
TYPE
<
tsysevt_to_channel_map
>(
PRU0_PRU1_INTERRUPT
,
CHANNEL1
) _
202
,
TYPE
<
tsysevt_to_channel_map
>(
PRU1_PRU0_INTERRUPT
,
CHANNEL0
) _
203
,
TYPE
<
tsysevt_to_channel_map
>(
PRU0_ARM_INTERRUPT
,
CHANNEL2
) _
204
,
TYPE
<
tsysevt_to_channel_map
>(
PRU1_ARM_INTERRUPT
,
CHANNEL3
) _
205
,
TYPE
<
tsysevt_to_channel_map
>(
ARM_PRU0_INTERRUPT
,
CHANNEL0
) _
206
,
TYPE
<
tsysevt_to_channel_map
>(
ARM_PRU1_INTERRUPT
,
CHANNEL1
) _
207
,
TYPE
<
tsysevt_to_channel_map
>(
PRUIO_IRPT
,
PRUIO_CHAN
) _
208
,
TYPE
<
tsysevt_to_channel_map
>(-1, -1)}, _
209
{
TYPE
<
tchannel_to_host_map
>(
CHANNEL0
,
PRU0
) _
210
,
TYPE
<
tchannel_to_host_map
>(
CHANNEL1
,
PRU1
) _
211
,
TYPE
<
tchannel_to_host_map
>(
CHANNEL2
,
PRU_EVTOUT0
) _
212
,
TYPE
<
tchannel_to_host_map
>(
CHANNEL3
,
PRU_EVTOUT1
) _
213
,
TYPE
<
tchannel_to_host_map
>(
PRUIO_CHAN
,
PRUIO_EMAP
) _
214
,
TYPE
<
tchannel_to_host_map
>(-1, -1) }, _
215
(
PRU0_HOSTEN_MASK
OR
PRU1_HOSTEN_MASK
OR
_
216
PRU_EVTOUT0_HOSTEN_MASK
OR
PRU_EVTOUT1_HOSTEN_MASK
OR
PRUIO_MASK
) _
217
)
218
219
src
pruio
pruio_intc.bi
Generated on Thu May 11 2023 12:42:51 for libpruio by
1.9.1