libpynq (release 5EWC0-2023 version 0.2.0 of 2023-08-28 20:33)
Loading...
Searching...
No Matches
pinmap.h
Go to the documentation of this file.
1/*
2Copyright (c) 2023 Eindhoven University of Technology
3
4Permission is hereby granted, free of charge, to any person obtaining a copy
5of this software and associated documentation files (the "Software"), to deal
6in the Software without restriction, including without limitation the rights
7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8copies of the Software, and to permit persons to whom the Software is
9furnished to do so, subject to the following conditions:
10
11The above copyright notice and this permission notice shall be included in all
12copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20SOFTWARE.
21*/
22#ifndef PINMAP_H
23#define PINMAP_H
24
42#define NUM_ANALOG_REFERENCE_PINS 14 /* # analog reference pins */
43#define NUM_ANALOG_IN_PINS 6 /* # analog input pins */
44#define NUM_SWITCHBOX_PINS 64 /* # switchbox pins */
45
49#define SWB_AR0 0 /* reference pin 0 */
50#define SWB_AR1 1 /* reference pin 1 */
51#define SWB_AR2 2 /* reference pin 2 */
52#define SWB_AR3 3 /* reference pin 3 */
53#define SWB_AR4 4 /* reference pin 4 */
54#define SWB_AR5 5 /* reference pin 5 */
55#define SWB_AR6 6 /* reference pin 6 */
56#define SWB_AR7 7 /* reference pin 7 */
57#define SWB_AR8 8 /* reference pin 8 */
58#define SWB_AR9 9 /* reference pin 9 */
59#define SWB_AR10 10 /* reference pin 10 */
60#define SWB_AR11 11 /* reference pin 11 */
61#define SWB_AR12 12 /* reference pin 12 */
62#define SWB_AR13 13 /* reference pin 13 */
63
67#define SWB_A0 14 /* analog input pin 0 */
68#define SWB_A1 15 /* analog input pin 1 */
69#define SWB_A2 16 /* analog input pin 2 */
70#define SWB_A3 17 /* analog input pin 3 */
71#define SWB_A4 18 /* analog input pin 4 */
72#define SWB_A5 19 /* analog input pin 5 */
73
77#define SWB_SW0 20 /* switch input pin 0 */
78#define SWB_SW1 21 /* switch input pin 1 */
79
83#define SWB_BTN0 22 /* button input pin 0 */
84#define SWB_BTN1 23 /* button input pin 1 */
85#define SWB_BTN2 24 /* button input pin 2 */
86#define SWB_BTN3 25 /* button input pin 3 */
87
91#define SWB_LD0 26 /* LED output pin 0 */
92#define SWB_LD1 27 /* LED output pin 1 */
93#define SWB_LD2 28 /* LED output pin 2 */
94#define SWB_LD3 29 /* LED output pin 3 */
95
99#define SWB_AR_SCL 31 /* I2C clock pin */
100#define SWB_AR_SDA 30 /* I2C data pin */
101
106#define SWB_LD4B 32 /* color LED 0 blue input pin */
107#define SWB_LD4R 33 /* color LED 0 red input pin */
108#define SWB_LD4G 34 /* color LED 0 green input pin */
109
110#define SWB_LD5B 35 /* color LED 1 blue input pin */
111#define SWB_LD5R 36 /* color LED 1 red input pin */
112#define SWB_LD5G 37 /* color LED 1 green input pin */
113
117#define SWB_RBPI40 38 /* RaspberryPi header pin */
118#define SWB_RBPI37 39 /* RaspberryPi header pin */
119#define SWB_RBPI38 40 /* RaspberryPi header pin */
120#define SWB_RBPI35 41 /* RaspberryPi header pin */
121#define SWB_RBPI36 42 /* RaspberryPi header pin */
122#define SWB_RBPI33 43 /* RaspberryPi header pin */
123#define SWB_RBPI18 44 /* RaspberryPi header pin */
124#define SWB_RBPI32 45 /* RaspberryPi header pin */
125#define SWB_RBPI10 46 /* RaspberryPi header pin */
126#define SWB_RBPI27 47 /* RaspberryPi header pin */
127#define SWB_RBPI28 48 /* RaspberryPi header pin */
128#define SWB_RBPI22 49 /* RaspberryPi header pin */
129#define SWB_RBPI23 50 /* RaspberryPi header pin */
130#define SWB_RBPI24 51 /* RaspberryPi header pin */
131#define SWB_RBPI21 52 /* RaspberryPi header pin */
132#define SWB_RBPI26 53 /* RaspberryPi header pin */
133#define SWB_RBPI19 54 /* RaspberryPi header pin */
134#define SWB_RBPI31 55 /* RaspberryPi header pin */
135#define SWB_RBPI15 56 /* RaspberryPi header pin */
136#define SWB_RBPI16 57 /* RaspberryPi header pin */
137#define SWB_RBPI13 58 /* RaspberryPi header pin */
138#define SWB_RBPI12 59 /* RaspberryPi header pin */
139#define SWB_RBPI29 60 /* RaspberryPi header pin */
140#define SWB_RBPI08 61 /* RaspberryPi header pin */
141#define SWB_RBPI07 62 /* RaspberryPi header pin */
142#define SWB_RBPI05 63 /* RaspberryPi header pin */
143
147extern char *const pin_names[64];
151#endif // PINMAP_H
char *const pin_names[64]
Pin names.
Definition pinmap.c:24