gnupic: Re: [gnupic] USB code, PICDEM FS USB and Linux
Subject:
Re: [gnupic] USB code, PICDEM FS USB and Linux
From:
Xiaofan Chen ####@####.####
Date:
27 Jan 2006 15:34:20 +0000
Message-Id: <a276da400601270734i51c8a64dk6f3fe3bf4ebf52fa@mail.gmail.com>
On 1/27/06, Alessandro Zummo ####@####.#### wrote:
>
>
> I haven't worked on it further. Please find attached
> my derived code. I structured it in a way that
> descriptors to be modified in an easy way.
>
> If you can work on it, I'd be happy to help
> and test.
>
I have not looked into much detail of Bminch's Lab 2 code,
however, compare to PICkit 1 and 2, there are some features
missing in the code.
1) vendor request is not implemented (from Lab 2 C code, asm
code is similar)
void VendorRequests(void) {
switch (USB_buffer_data[bRequest]) {
default:
USB_error_flags |= 0x01; // set Request Error Flag
}
}
2) interrupt transfer through EP1 is not implemented.
(from lab2.c)
void ProcessInToken(void) {
...
case EP1:
break;
case EP2:
break;
}
}
I think you need to implement at least the first one to
get effective communication.
Here is an example but it is using Microchip USB framework
(using C18)
http://forum.microchip.com/tm.aspx?m=135115
Regards,
Xiaofan