2013-06-21 04:59 AM
2013-06-21 05:26 AM
2013-06-21 08:04 AM
Downstreaming cycle usially works faster then upstreaming.
2013-06-21 08:38 AM
or use memset with argument of sizeof() because the compiler often does not lie about sizeof()
2013-06-23 12:36 PM
Regardless of why it was written the way it was, it certainly looks like a bug to me. It should be:
for(index = CBW_CB_LENGTH-1; index !=0; index--)As originally written it will overwrite the next byte in memory which may or may not cause problems, depending on what is sitting there.2013-06-24 08:47 AM
USBH_MSC_CSW_LENGTH
I only found and bothered about these as I use lint on all my projects and was doing the preparation before a peer review It doesnt seem to affect the performance of my USB functionality but the code maybe doesnt do what the author intended