]>
Commit | Line | Data |
---|---|---|
a3be4966 BP |
1 | ; rev 0.9 |
2 | ; (c) Bernd Porr, Bernd.Porr@cn.stir.ac.uk | |
3 | ; GPL, GNU public license | |
4 | ; | |
5 | ; This program is free software; you can redistribute it and/or modify | |
6 | ; it under the terms of the GNU General Public License as published by | |
7 | ; the Free Software Foundation; either version 2 of the License, or | |
8 | ; (at your option) any later version. | |
9 | ; | |
10 | ; This program is distributed in the hope that it will be useful, | |
11 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | ; GNU General Public License for more details. | |
14 | ; | |
15 | ; You should have received a copy of the GNU General Public License | |
16 | ; along with this program; if not, write to the Free Software | |
17 | ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
18 | ; | |
19 | ; In conjunction with the as31. | |
20 | ; Include-file for the FX2 by Cypress. The rest of the regs is defined | |
21 | ; by the as31 itself. | |
22 | ; | |
23 | ; from the TRM of the FX2: | |
24 | ; | |
25 | ;; CPU control | |
26 | .equ CPUCS,0E600H | |
27 | .equ REVCTL,0E60BH | |
28 | ;; interface config | |
29 | .equ IFCONFIG,0E601H | |
30 | .equ FIFORESET,0E604H | |
31 | ;; Endpoint configs | |
32 | .equ EP1OUTCFG,0E610H | |
33 | .equ EP1INCFG,0E611H | |
34 | .equ EP2CFG,0E612H | |
35 | .equ EP4CFG,0E613H | |
36 | .equ EP6CFG,0E614H | |
37 | .equ EP8CFG,0E615H | |
38 | ;; packets per frame, always one for USB 1.1 | |
39 | .equ EP2ISOINPKTS,0E640H | |
40 | .equ EP4ISOINPKTS,0E641H | |
41 | .equ EP6ISOINPKTS,0E642H | |
42 | .equ EP8ISOINPKTS,0E643H | |
43 | ;; endpoint byte counts | |
44 | .equ EP1OUTBC,0E68DH | |
45 | .equ EP1INBC,0E68FH | |
46 | .equ EP1INCS,0E6A2H | |
47 | .equ EP2BCH,0E690H | |
48 | .equ EP2BCL,0E691H | |
49 | .equ EP4BCH,0E694H | |
50 | .equ EP4BCL,0E695H | |
51 | .equ EP6BCH,0E698H | |
52 | .equ EP6BCL,0E699H | |
53 | .equ EP8BCH,0E69CH | |
54 | .equ EP8BCL,0E69DH | |
55 | ;; | |
56 | .equ EP4AUTOINLENH,0E622H | |
57 | .equ EP4AUTOINLENL,0E623H | |
58 | .equ EP6AUTOINLENH,0E624H | |
59 | .equ EP6AUTOINLENL,0E625H | |
60 | .equ EP2FIFOCFG,0E618H | |
61 | .equ EP4FIFOCFG,0E619H | |
62 | .equ EP6FIFOCFG,0E61AH | |
63 | .equ EP8FIFOCFG,0E61BH | |
64 | ;; | |
65 | .equ INPKTEND,0E648H | |
66 | .equ GPIFCTLCFG,0E6C3H | |
67 | .equ GPIFABORT,0E6F5H | |
68 | .equ GPIFIDLECTL,0E6C2H | |
69 | .equ GPIFWFSELECT,0E6C0H | |
70 | .equ GPIFREADYCFG,0E6F3H | |
71 | .equ GPIFIDLECS,0E6C1H | |
72 | .equ EP6GPIFFLGSEL,0E6E2H | |
73 | .equ EP6GPIFPDFSTOP,0E6E3H | |
74 | .equ EP6GPIFTRIG,0E6E4H | |
75 | .equ GPIFIE,0E660H | |
76 | .equ GPIFIRQ,0E661H | |
77 | ;; | |
78 | ;; endpoint control | |
79 | .equ EP2CS,0E6A3H | |
80 | .equ EP4CS,0E6A4H | |
81 | .equ EP6CS,0E6A5H | |
82 | .equ EP8CS,0E6A6H | |
83 | ;; endpoint buffers | |
84 | .equ EP2FIFOBUF,0F000H | |
85 | .equ EP4FIFOBUF,0F400H | |
86 | .equ EP6FIFOBUF,0F800H | |
87 | .equ EP8FIFOBUF,0FC00H | |
88 | ;; IRQ enable for bulk NAK | |
89 | .equ IBNIE,0E658H | |
90 | ;; interrupt requ for NAK | |
91 | .equ IBNIRQ,0E659H | |
92 | ;; USB INT enables | |
93 | .equ USBIE,0E65CH | |
94 | ;; USB interrupt request | |
95 | .equ USBIRQ,0E65DH | |
96 | ;; endpoint IRQ enable | |
97 | .equ EPIE,0E65EH | |
98 | ;; endpoint IRQ requests | |
99 | .equ EPIRQ,0E65FH | |
100 | ;; USB error IRQ requests | |
101 | .equ USBERRIE,0E662H | |
102 | ;; USB error IRQ request | |
103 | .equ USBERRIRQ,0E663H | |
104 | ;; USB interrupt 2 autovector | |
105 | .equ INT2IVEC,0E666H | |
106 | ;; autovector enable | |
107 | .equ INTSETUP,0E668H | |
108 | ;; port cfg | |
109 | .equ PORTACFG,0E670H | |
110 | .equ PORTCCFG,0E671H | |
111 | .equ PORTECFG,0E672H | |
112 | ;; I2C bus | |
113 | .equ I2CS,0E678H | |
114 | .equ I2DAT,0E679H | |
115 | .equ I2CTL,0E67AH | |
116 | ;; auto pointers, read/write is directed to the pointed address | |
117 | .equ XAUTODAT1,0E67BH | |
118 | .equ XAUTODAT2,0E67CH | |
119 | ;; USB-control | |
120 | .equ USBCS,0E680H | |
121 | ;; force packet end | |
122 | .equ OUTPKTEND,0E649H | |
123 | .equ IOA,80H | |
124 | .equ DPL1,84H | |
125 | .equ DPH1,85H | |
126 | .equ DPS,86H | |
127 | .equ CKCON,8Eh | |
128 | .equ IOB,90H | |
129 | .equ EXIF,91h | |
130 | .equ MPAGE,92h | |
131 | .equ AUTOPTRH1,9AH | |
132 | .equ AUTOPTRL1,9BH | |
133 | .equ AUTOPTRH2,9DH | |
134 | .equ AUTOPTRL2,9EH | |
135 | .equ IOC,0A0H | |
136 | .equ INT2CLR,0A1H | |
137 | .equ INT4CLR,0A2H | |
138 | .equ EP2468STAT,0AAH | |
139 | .equ EP24FIFOFLGS,0ABH | |
140 | .equ EP68FIFOFLGS,0ACH | |
141 | .equ AUTOPTRSETUP,0AFH | |
142 | .equ IOD,0B0H | |
143 | .equ IOE,0B1H | |
144 | .equ OEA,0B2H | |
145 | .equ OEB,0B3H | |
146 | .equ OEC,0B4H | |
147 | .equ OED,0B5H | |
148 | .equ OEE,0B6H | |
149 | .equ GPIFTRIG,0BBH | |
150 | .equ EIE,0E8h | |
151 | .equ EIP,0F8h | |
152 | ||
153 | ||
154 | ;; GPIF | |
155 | .equ GPIFTCB3,0E6CEH | |
156 | .equ GPIFTCB2,0E6CFH | |
157 | .equ GPIFTCB1,0E6D0H | |
158 | .equ GPIFTCB0,0E6D1H | |
159 | .equ EP4GPIFFLGSEL,0E6DAH | |
160 | .equ EP4GPIFPFSTOP,0E6DBH | |
161 | ||
162 | ||
163 | ;;; end of file | |
164 |