Commit d435d84
committed
add support for in/out GPIO pins on ULX3S
The ULX3S has 2x28 IO pins that can be used either individually or as
differential pairs. Currently we're going to assume an individual setup (you can
configure their behaviour in the .lpf file).
The convention is to see them as gp[27] (GPIO positive) and gn[27] (GPIO
negative) arrays; this is how they're numbered on the board itself. Note that
positive and negative moniker are irrelevant in the current configuration as the
ports aren't set up as differential pairs. To work with this convention, we
split out the GPIO address space into 0x00XX and 0x02XX for setting in/output
values of gp and gn pins respectively, and use 0x01XX and 0x3XX for setting the
direction of the gn and gp pins.1 parent 9a92f21 commit d435d84
2 files changed
+76
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
25 | 54 | | |
26 | | - | |
| 55 | + | |
27 | 56 | | |
28 | 57 | | |
29 | 58 | | |
30 | 59 | | |
31 | 60 | | |
32 | 61 | | |
33 | 62 | | |
34 | | - | |
35 | 63 | | |
36 | 64 | | |
37 | 65 | | |
38 | | - | |
39 | 66 | | |
40 | | - | |
| 67 | + | |
41 | 68 | | |
42 | 69 | | |
43 | 70 | | |
| |||
53 | 80 | | |
54 | 81 | | |
55 | 82 | | |
56 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| |||
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
114 | 128 | | |
115 | 129 | | |
116 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
117 | 134 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 135 | + | |
121 | 136 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
126 | 140 | | |
127 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
128 | 147 | | |
129 | 148 | | |
130 | 149 | | |
131 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
132 | 156 | | |
| 157 | + | |
133 | 158 | | |
134 | 159 | | |
135 | 160 | | |
136 | 161 | | |
137 | 162 | | |
138 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
139 | 172 | | |
140 | 173 | | |
141 | 174 | | |
| |||
0 commit comments