Magic Lin,

There are a few different items to take into consideration for your proposed 
USB test program.
-- does the hardware already support USB?
---- if not, then you will have to 'bit bang' the USB lines via GPIO.

Your program will need to implement the USB communication protocol to be used.

The program will probably consist of four levels of code.
-- bit bang GPIO lines or control a USB peripheral
-- a USB function to implement the USB communication protocol.
-- a USB device driver to implement some standard functions like 
init/read/write/open/close/ioctl 
-- the actual USB test program.

This could be restated as:
USB hardware manipulation
USB protocol
USB device driver
USB test program

I'm not in a position to tell you how to implement each of the 4 indicated 
levels of the program.  
The specifics of each level will depend on the hardware available, what 
communication protocol is to be used, how robust the device driver is to be, 
and exactly what is to be tested.

R. Williams

---------- Original Message -----------
From: Magic Lin <[email protected]> 
To: "davinci" <[email protected]> 
Sent: Wed, 28 Oct 2009 09:38:16 +0800 
Subject: usb test

> Hello all:
>    
>  
> I want to write a usb test program on dm6446 platform.How to write? Can you 
> give me a example?
>  
> 2009-10-28 
-----------------------------------------------------------------------

> 
> 
> ±±¾©ÎÅ̩ͤ¿Æ¼¼Êõ·¢Õ¹ÓÐÏÞ¹«Ë¾
> ÐÕÃû£ºÁÖ·¨±¦
> Email:[email protected]
> µØÖ·:±±¾©Êк£µíÇøÉϵØÈý½Ö9ºÅ¼Î»ª´óÏÃB811 
> ÍøÖ·: www.wintechdigital.com.cn 
------- End of Original Message -------
 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
  • usb test Magic Lin
    • Re: usb test Richard Williams

Reply via email to