Date: Tue, 29 Apr 2008 21:59:10 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: "Xiaofan Chen" <xiaofanc@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device with HPS Stack Message-ID: <200804292159.11467.hselasky@c2i.net> In-Reply-To: <a276da400804260019m1838cc1ei615e0f25de0d2cff@mail.gmail.com> References: <a276da400804250733v1e8db234x75265d7cfca915c@mail.gmail.com> <200804252349.25954.hselasky@c2i.net> <a276da400804260019m1838cc1ei615e0f25de0d2cff@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804292159.11467.hselasky>