On Saturday 26 April 2008, Xiaofan Chen wrote:
> http://sourceforge.net/projects/pic18fusb
Hi,
This source code is not USB standard compliant and it is not good!
For example:
//Clear feature
void clear_feature(void){
parity.msdi_parity = 0; //reset ep1 in parity
UEP1bits.EPSTALL = 0;
ep0Bi.CNT = 0; //send zero length packet
ep0Bi.STAT = 0x80 | 0x40 | 0x08;
send_csw(); //send csw
}
At least this function should check which endpoint you clear the stall on.
Maybe you can get my USB stack working on your PIC board? It now supports the
Device Side aswell as the host side! See "usbd_handle_request" in:
http://www.selasky.org/hans_petter/isdn4bsd/sources/src/sys/dev/usb/usb_transfer.c
Mass storage driver:
http://www.selasky.org/hans_petter/isdn4bsd/sources/src/sys/dev/usb/ustorage_fs.c
--HPS
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[EMAIL PROTECTED]"