libpruio
0.6.8
Fast and easy Digital/Analog Input/Output for Beaglebones
P9.bi
Go to the documentation of this file.
1
13
14
' Load convenience macros.
15
#INCLUDE ONCE
"../pruio/pruio_pins.bi"
16
17
' pin 1, GND
18
' pin 2, GND
19
' pin 3, 3V3
20
' pin 4, 3V3
21
' pin 5, VDD 5V
22
' pin 6, VDD 5V
23
' pin 7, SYS 5V
24
' pin 8, SYS 5V
25
' pin 9, PWR BUT
26
' pin 10, ZCZ ball A10 RESETn
27
28
' ZCZ ball T17
29
M(P9_11) =
CHR
( _
30
0 + _I_ _
' gpmc_wait0
31
, 1 + _I_ _
' gmii2_crs
32
, 2 + _O_ _
' gpmc_csn4
33
, 3 + _I_ _
' rmii2_crs_dv
34
, 4 + _I_ _
' mmc1_sdcd
35
, 5 + _I_ _
' pr1_mii_col
36
, 6 + _I_ _
' uart4_rxd
37
) & GPIO_DEF
38
39
' ZCZ ball U18
40
M(P9_12) =
CHR
( _
41
0 + _O_ _
' gpmc_be1n
42
, 1 + _I_ _
' gmii2_col
43
, 2 + _O_ _
' gpmc_csn6
44
, 3 + I_O _
' mmc2_dat3
45
, 4 + _O_ _
' gpmc_dir
46
, 5 + _I_ _
' pr1_mii_rxlink
47
, 6 + I_O _
' mcasp0_aclkr
48
) & GPIO_DEF
49
50
' ZCZ ball U17
51
M(P9_13) =
CHR
( _
52
0 + _O_ _
' gpmc_wpn
53
, 1 + _I_ _
' gmii2_rxerr
54
, 2 + _O_ _
' gpmc_csn5
55
, 3 + _I_ _
' rmii2_rxerr
56
, 4 + _I_ _
' mmc2_sdcd
57
, 5 + _O_ _
' pr1_mii1_txen
58
, 6 + _O_ _
' uart4_txd
59
) & GPIO_DEF
60
61
' ZCZ ball U14
62
M(P9_14) =
CHR
( _
63
0 + _O_ _
' gpmc_a2
64
, 1 + _O_ _
' gmii2_txd3
65
, 2 + _O_ _
' rgmii2_td3
66
, 3 + I_O _
' mmc2_dat1
67
, 4 + _O_ _
' gpmc_a18
68
, 5 + _O_ _
' pr1_mii1_txd2
69
, 6 + _O_ _
' ehrpwm1A
70
) & GPIO_DEF
71
72
' ZCZ ball R13
73
M(P9_15) =
CHR
( _
74
0 + _O_ _
' gpmc_a0
75
, 1 + _O_ _
' gmii2_txen
76
, 2 + _O_ _
' rgmii2_tctl
77
, 3 + _O_ _
' rmii2_txen
78
, 4 + _O_ _
' gpmc_a16
79
, 5 + _I_ _
' pr1_mii_mt1_clk
80
, 6 + _I_ _
' ehrpwm1_tripzone_input
81
) & GPIO_DEF
82
83
' ZCZ ball T14
84
M(P9_16) =
CHR
( _
85
0 + _O_ _
' gpmc_a3
86
, 1 + _O_ _
' gmii2_txd2
87
, 2 + _O_ _
' rgmii2_td2
88
, 3 + I_O _
' mmc2_dat2
89
, 4 + _O_ _
' gpmc_a19
90
, 5 + _O_ _
' pr1_mii1_txd1
91
, 6 + _O_ _
' ehrpwm1B
92
) & GPIO_DEF
93
94
' ZCZ ball A16
95
M(P9_17) =
CHR
( _
96
0 + I_O _
' spi0_cs0
97
, 1 + _I_ _
' mmc2_sdwp
98
, 2 + IOD _
' I2C1_SCL
99
, 3 + _I_ _
' ehrpwm0_synci
100
, 4 + _O_ _
' pr1_uart0_txd
101
, 5 + _I_ _
' pr1_edio_data_in1
102
, 6 + _O_ _
' pr1_edio_data_out1
103
) & GPIO_DEF
104
105
' ZCZ ball B16
106
M(P9_18) =
CHR
( _
107
0 + I_O _
' spi0_d1
108
, 1 + _I_ _
' mmc1_sdwp
109
, 2 + IOD _
' I2C1_SDA
110
, 3 + _I_ _
' ehrpwm0_tripzone_input
111
, 4 + _I_ _
' pr1_uart0_rxd
112
, 5 + _I_ _
' pr1_edio_data_in0
113
, 6 + _O_ _
' pr1_edio_data_out0
114
) & GPIO_DEF
115
116
' ZCZ ball D17 (i2c)
117
M(P9_19) =
CHR
( _
118
0 + _O_ _
' uart1_rtsn
119
, 1 + TMRi _
' timer5_in
120
, 1 + TMRo _
' timer5_pwm_out
121
, 2 + _I_ _
' dcan0_rx
122
, 3 + IOD _
' I2C2_SCL
123
, 4 + I_O _
' spi1_cs1
124
, 5 + _O_ _
' pr1_uart0_rts_n
125
, 6 + _I_ _
' pr1_edc_latch_in
126
) & GPIO_DEF
127
128
' ZCZ ball D18 (i2c)
129
M(P9_20) =
CHR
( _
130
0 + _I_ _
' uart1_ctsn
131
, 1 + TMRi _
' timer6_in
132
, 1 + TMRo _
' timer6pwm_out
133
, 2 + _O_ _
' dcan0_tx
134
, 3 + IOD _
' I2C2_SDA
135
, 4 + I_O _
' spi1_cs0
136
, 5 + _I_ _
' pr1_uart0_cts_n
137
, 6 + _I_ _
' pr1_edc_latch0_in
138
) & GPIO_DEF
139
140
' ZCZ ball B17
141
M(P9_21) =
CHR
( _
142
0 + I_O _
' spi0_d0
143
, 1 + _O_ _
' uart2_txd
144
, 2 + IOD _
' I2C2_SCL
145
, 3 + _O_ _
' ehrpwm0B
146
, 4 + _O_ _
' pr1_uart0_rts_n
147
, 5 + _I_ _
' pr1_edio_latch_in
148
, 6 + I_O _
' EMU3
149
) & GPIO_DEF
150
151
' ZCZ ball A17
152
M(P9_22) =
CHR
( _
153
0 + I_O _
' spi0_sclk
154
, 1 + _I_ _
' uart2_rxd
155
, 2 + IOD _
' I2C2_SDA
156
, 3 + _O_ _
' ehrpwm0A
157
, 4 + _I_ _
' pr1_uart0_cts_n
158
, 5 + _O_ _
' pr1_edio_sof
159
, 6 + I_O _
' EMU2
160
) & GPIO_DEF
161
162
' ZCZ ball V14
163
M(P9_23) =
CHR
( _
164
0 + _O_ _
' gpmc_a1
165
, 1 + _I_ _
' gmii2_rxdv
166
, 2 + _I_ _
' rgmii2_rctl
167
, 3 + I_O _
' mmc2_dat0
168
, 4 + _O_ _
' gpmc_a17
169
, 5 + _O_ _
' pr1_mii1_txd3
170
, 6 + _O_ _
' ehrpwm0_synco
171
) & GPIO_DEF
172
173
' ZCZ ball d15
174
M(P9_24) =
CHR
( _
175
0 + _O_ _
' uart1_txd
176
, 1 + _I_ _
' mmc2_sdwp
177
, 2 + _I_ _
' dcan1_rx
178
, 3 + IOD _
' I2C1_SCL
179
, 5 + _O_ _
' pr1_uart0_txd
180
, 6 + _I_ _
' pr1_pru0_pru_r31_16
181
) & GPIO_DEF
182
183
' ZCZ ball a14 (AUDIO)
184
M(P9_25) =
CHR
( _
185
0 + I_O _
' mcasp0_ahclkx
186
, 1 + QEPi _
' eQEP0_strobe_in
187
, 1 + QEPo _
' eQEP0_strobe_out
188
, 2 + I_O _
' mcasp0_axr3
189
, 3 + I_O _
' mcasp1_axr1
190
, 4 + I_O _
' EMU4
191
, 5 + _O_ _
' pr1_pru0_pru_r30_7
192
, 6 + _I_ _
' pr1_pru0_pru_r31_7
193
) & GPIO_DEF
194
195
' ZCZ ball D16
196
M(P9_26) =
CHR
( _
197
0 + _I_ _
' uart1_rxd
198
, 1 + _I_ _
' mmc1_sdwp
199
, 2 + _O_ _
' dcan1_tx
200
, 3 + IOD _
' I2C1_SDA
201
, 5 + _I_ _
' pr1_uart0_rxd
202
, 6 + _I_ _
' pr1_pru1_pru_r31_16
203
) & GPIO_DEF
204
205
' ZCZ ball C13
206
M(P9_27) =
CHR
( _
207
0 + I_O _
' mcasp0_fsr
208
, 1 + QEPi _
' eQEP0B_in
209
, 2 + I_O _
' mcasp0_axr3
210
, 3 + I_O _
' mcasp1_fsx
211
, 4 + I_O _
' EMU2
212
, 5 + _O_ _
' pr1_pru0_pru_r30_5
213
, 6 + _I_ _
' pr1_pru0_pru_r31_5
214
) & GPIO_DEF
215
216
' ZCZ ball C12
217
M(P9_28) =
CHR
( _
218
0 + I_O _
' mcasp0_ahclkr
219
, 1 + _I_ _
' ehrpwm0_synci
220
, 2 + I_O _
' mcasp0_axr2
221
, 3 + I_O _
' spi1_cs0
222
, 4 + CAPo _
' eCAP2_PWM2_out
223
, 4 + CAPi _
' eCAP2_in
224
, 5 + _O_ _
' pr1_pru0_pru_r30_3
225
, 6 + _I_ _
' pr1_pru0_pru_r31_3
226
) & GPIO_DEF
227
228
' ZCZ ball B13 (audio)
229
M(P9_29) =
CHR
( _
230
0 + I_O _
' mcasp0_fsx
231
, 1 + _O_ _
' ehrpwm0B
232
, 3 + I_O _
' spi1_d0
233
, 4 + _I_ _
' mmc1_sdcd
234
, 5 + _O_ _
' pr1_pru0_pru_r30_1
235
, 6 + _I_ _
' pr1_pru0_pru_r31_1
236
) & GPIO_DEF
237
238
' ZCZ ball D12
239
M(P9_30) =
CHR
( _
240
0 + I_O _
' mcasp0_axr0
241
, 1 + _I_ _
' ehrpwm0_tripzone_input
242
, 3 + I_O _
' spi1_d1
243
, 4 + _I_ _
' mmc2_sdcd
244
, 5 + _O_ _
' pr1_pru0_pru_r30_2
245
, 6 + _I_ _
' pr1_pru0_pru_r31_2
246
) & GPIO_DEF
247
248
' ZCZ ball A13 (audio)
249
M(P9_31) =
CHR
( _
250
0 + I_O _
' mcasp0_aclkx
251
, 1 + _O_ _
' ehrpwm0A
252
, 3 + I_O _
' spi1_sclk
253
, 4 + _I_ _
' mmc0_sdcd
254
, 5 + _O_ _
' pr1_pru0_pru_r30_0
255
, 6 + _I_ _
' pr1_pru0_pru_r31_0
256
) & GPIO_DEF
257
258
'pin 32, (ADC VAC)
259
'pin 33, ZCZ ball C8 (ADC AIN-4)
260
'pin 34, (ADC AGND)
261
'pin 35, ZCZ ball A8 (ADC AIN-6)
262
'pin 36, ZCZ ball B8 (ADC AIN-5)
263
'pin 37, ZCZ ball B7 (ADC AIN-2)
264
'pin 38, ZCZ ball A7 (ADC AIN-3)
265
'pin 39, ZCZ ball B6 (ADC AIN-0)
266
'pin 40, ZCZ ball C7 (ADC AIN-1)
267
268
' ZCZ ball D14 (mcasp)
269
M(P9_41) =
CHR
( _
270
0 + _I_ _
' xdma_event_intr1
271
, 2 + _I_ _
' tclkin
272
, 3 + _O_ _
' clkout2
273
, 4 + TMRi _
' timer7_in
274
, 4 + TMRo _
' timer7_pwm_out
275
, 5 + _I_ _
' pr1_pru0_pru_r31_16
276
, 6 + I_O _
' EMU3
277
) & GPIO_DEF
278
279
' ZCZ ball C18
280
M(P9_42) =
CHR
( _
281
0 + CAPo _
' eCAP0_PWM0_out
282
, 0 + CAPi _
' eCAP0_in
283
, 1 + _O_ _
' uart3_txd
284
, 2 + I_O _
' spi1_cs1
285
, 3 + CAPi _
' pr1_ecap0_ecap_capin
286
, 3 + CAPo _
' pr1_ecap0_ecap_apwm_o
287
, 4 + I_O _
' spi1_sclk
288
, 5 + _I_ _
' mmc0_sdwp
289
, 6 + _I_ _
' xdma_event_intr2
290
) & GPIO_DEF
291
292
' pin 41, ZCZ ball D13 (mcasp)
293
M(106) =
CHR
( _
294
0 + I_O _
' mcasp0_axr1
295
, 1 + QEPi _
' eQEP0_index_in
296
, 1 + QEPo _
' eQEP0_index_out
297
, 3 + I_O _
' mcasp1_axr0
298
, 4 + I_O _
' EMU3
299
, 5 + _O_ _
' pr1_pru0_pru_r30_6
300
, 6 + _I_ _
' pr1_pru0_pru_r31_6
301
) & GPIO_DEF
302
303
' pin 42, ZCZ ball B12
304
M(104) =
CHR
( _
305
0 + I_O _
' mcasp0_aclkr
306
, 1 + QEPi _
' eQEP0A_in
307
, 2 + I_O _
' mcasp0_axr2
308
, 3 + I_O _
' mcasp1_aclkx
309
, 4 + _I_ _
' mmc0_sdwp
310
, 5 + _O_ _
' pr1_pru0_pru_r30_4
311
, 6 + _I_ _
' pr1_pru0_pru_r31_4
312
) & GPIO_DEF
313
314
'pin 43, GND
315
'pin 44, GND
316
'pin 45, GND
317
'pin 46, GND
318
src
config
P9.bi
Generated on Thu May 11 2023 12:42:51 for libpruio by
1.9.1