📄 upsd_usb.ls1
字号:
203 ?PR?OnSetFeature?UPSD_USB SEGMENT CODE
204 ?PR?OnSetAddress?UPSD_USB SEGMENT CODE
205 ?PR?OnGetConfiguration?UPSD_USB SEGMENT CODE
206 ?PR?OnSetConfiguration?UPSD_USB SEGMENT CODE
207 ?PR?OnGetInterface?UPSD_USB SEGMENT CODE
208 ?PR?OnSetInterface?UPSD_USB SEGMENT CODE
209 ?PR?OnGetDescriptor?UPSD_USB SEGMENT CODE
210 ?PR?OnSetDescriptor?UPSD_USB SEGMENT CODE
211 ?PR?ReadSetupPacket?UPSD_USB SEGMENT CODE
212 ?XD?ReadSetupPacket?UPSD_USB SEGMENT XDATA OVERLAYABLE
213 ?PR?OnSetupPacket?UPSD_USB SEGMENT CODE
214 ?PR?BaseEp0TxHandler?UPSD_USB SEGMENT CODE
215 ?XD?UPSD_USB SEGMENT XDATA
216 ?ID?UPSD_USB SEGMENT IDATA
217 ?DT?TransmitBufferEP0?UPSD_USB SEGMENT DATA OVERLAYABLE
218 ?DT?_TransmitDataEP0?UPSD_USB SEGMENT DATA OVERLAYABLE
219 ?DT?_TransmitDataEPx?UPSD_USB SEGMENT DATA OVERLAYABLE
220 ?DT?OnGetDescriptor?UPSD_USB SEGMENT DATA OVERLAYABLE
221 ?DT?ReadSetupPacket?UPSD_USB SEGMENT DATA OVERLAYABLE
222 EXTRN CODE (stringDescTable)
223 EXTRN CODE (cUSCL_value)
224 EXTRN CODE (OnDeviceConfigured)
225 EXTRN CODE (reportDesc)
226 EXTRN CODE (hidClassDesc)
227 EXTRN CODE (reportDescSize)
228 EXTRN CODE (PhysicalReportDesc)
229 EXTRN CODE (hidClassDescSize)
230 EXTRN CODE (PhysicalReportDescSize)
231 EXTRN CODE (deviceDesc)
232 EXTRN CODE (configDesc)
233 EXTRN CODE (?C?ILDIX)
234 EXTRN CODE (?C?CLDPTR)
235 EXTRN CODE (?C?CSTPTR)
236 PUBLIC usbState
237 PUBLIC SuspendCounter
238 PUBLIC setupPacket
239 PUBLIC ep1State
240 PUBLIC BaseEp0TxHandler
241 PUBLIC OnSetupPacket
242 PUBLIC ReadSetupPacket
243 PUBLIC ?_TransmitDataEPx?BYTE
244 PUBLIC _TransmitDataEPx
245 PUBLIC _TransmitDataEP0
246 PUBLIC STALL_EP0
247 PUBLIC UsbInitialize
248 PUBLIC OnUSBReset
249
---- 250 RSEG ?XD?_TransmitDataEPx?UPSD_USB
0000 251 ?_TransmitDataEPx?BYTE:
0000 252 x?545: DS 2
0002 253 pData?546: DS 3
0005 254 nBytes?547: DS 2
255
A51 MACRO ASSEMBLER UPSD_USB 10/15/2004 20:55:31 PAGE 5
---- 256 RSEG ?XD?ReadSetupPacket?UPSD_USB
0000 257 ?ReadSetupPacket?BYTE:
0000 258 p?1651: DS 3
259
---- 260 RSEG ?XD?_TransmitDataEP0?UPSD_USB
0000 261 ?_TransmitDataEP0?BYTE:
0000 262 pData?442: DS 3
263
---- 264 RSEG ?XD?UPSD_USB
0000 265 shortTransfer: DS 1
0001 266 bytesToTransmitEP0: DS 2
0003 267 setupPacket: DS 8
000B 268 pTransmitBufferEP0: DS 3
269
---- 270 RSEG ?ID?UPSD_USB
0000 271 ep1State: DS 1
0001 272 SuspendCounter: DS 1
0002 273 usbState: DS 1
274
---- 275 RSEG ?DT?TransmitBufferEP0?UPSD_USB
0000 276 i?340: DS 2
277
---- 278 RSEG ?DT?TransmitBufferEP0?UPSD_USB
0002 279 nBytes?341: DS 2
280
---- 281 RSEG ?DT?_TransmitDataEP0?UPSD_USB
0000 282 xBytes?444: DS 1
283
---- 284 RSEG ?DT?_TransmitDataEPx?UPSD_USB
0000 285 xBytes?548: DS 1
286
---- 287 RSEG ?DT?OnGetDescriptor?UPSD_USB
0000 288 bytesRequested?1449: DS 2
289
---- 290 RSEG ?DT?ReadSetupPacket?UPSD_USB
0000 291 i?1650: DS 2
292 ; /* `=========================================================================`
293 ;
294 ; ***************************************
295 ; **** * * ****
296 ; Title: UPSD_USB
297 ; File name: upsd_usb.c
298 ; Project name: USB Demo
299 ; *** ****
300 ; ****************** * ******************
301 ; **** ****
302 ; Author: Petr PFEIFER
303 ; MPG Prague, Czech Republic
304 ; **** * * ****
305 ; ***************************************
306 ;
307 ; $Version: 0.107a Build: April 30, 2004
308 ;
309 ; $Version: 0.107 Build: 2004-04-29,17:55:46
310 ;
311 ;
312 ;
313 ;
314 ; Description:
315 ; ============
316 ;
317 ; USB driver module for uPSD3200 chip.
318 ; Improved version of USB demo v7
319 ; Version 0.105 - GetStatus added
320 ;
321 ;
A51 MACRO ASSEMBLER UPSD_USB 10/15/2004 20:55:31 PAGE 6
322 ; Notes:
323 ; ======
324 ; - do not change EPx service routines
325 ; and the order of commands ...
326 ;
327 ;
328 ; ..........................
329 ; . .
330 ; . ****************** .
331 ; . **PPPPPPPPPPPPPPPP .
332 ; . *PPPP*******PP**** .
333 ; . **PPP********PP*** .
334 ; . ***PPP******PP**** .
335 ; . *****PPP****PP**** .
336 ; . *****PPP****PP**** .
337 ; . PPPPPPPP****PP**** (R) .
338 ; . .
339 ; ..........................
340 ;
341 ;
342 ; =-=-=-=-=-=
343 ; =-=-=-=-=-=-=-=-=-=-=-=-=
344 ; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
345 ;
346 ; Copyright 2004 ST Microelectronics
347 ;
348 ; This code/file is provided as is and has no warranty,
349 ; implied or otherwise. You are free to use/modify any of the provided
350 ; code at your own risk in your applications with the expressed limitation
351 ; of liability (see below) so long as your product using the code
352 ; contains at least one uPSD products (device).
353 ;
354 ; LIMITATION OF LIABILITY:
355 ; ========================
356 ; NEITHER STMicroelectronics NOR ITS VENDORS OR AGENTS
357 ; SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
358 ; INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
359 ; CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
360 ; OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
361 ;
362 ; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
363 ; =-=-=-=-=-=-=-=-=-=-=-=-=
364 ; =-=-=-=-=-=
365 ;
366 ; For current information on uPSD products,
367 ; please consult our pages on the World Wide Web:
368 ;
369 ; www.st.com/psm
370 ;
371 ; - - - - - - - - - - - -
372 ;
373 ; STMicroelectronics GROUP OF COMPANIES
374 ; Australia - Brazil - China - Czech Republic - Finland - France - Germany
375 ; Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore
376 ; Spain - Sweden - Switzerland - United Kingdom - U.S.A.
377 ;
378 ; http://www.st.com
379 ;
380 ;
381 ; `========================================================================` */
382 ;
383 ; #pragma NOAREGS
384 ;
385 ; #include "upsd3200.h"
386 ; #include "upsd_usb.h"
387 ;
A51 MACRO ASSEMBLER UPSD_USB 10/15/2004 20:55:31 PAGE 7
388 ; //-- Variables ---------------------------------------------------------------
389 ;
390 ; #define HID_DEVICE 1
391 ;
392 ; // Constant Variables for USB configuration
393 ; extern const uchar code cUSCL_value;
394 ;
395 ; // Constant Variables for USB Descriptors
396 ; extern const device_descriptor code deviceDesc;
397 ; extern const configuration_descriptor code configDesc;
398 ; extern const uchar code string0Desc[];
399 ; extern const uchar code string1Desc[];
400 ; extern const uchar code string2Desc[];
401 ; extern const uchar * const code stringDescTable[];
402 ;
403 ; #if HID_DEVICE
404 ; extern const uchar code hidClassDesc[];
405 ; extern const uchar code hidClassDescSize;
406 ; extern const uchar code reportDesc[];
407 ; extern const uchar code reportDescSize;
408 ; extern const uchar code PhysicalReportDesc;
409 ; extern const uchar code PhysicalReportDescSize;
410 ; #endif
411 ;
412 ; volatile uchar idata usbState;
413 ; volatile uchar idata ep1State; //added April 30, 2004
414 ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -