OpenCores
URL https://opencores.org/ocsvn/csa/csa/trunk

Subversion Repositories csa

[/] [csa/] [trunk/] [pc/] [imgdev.c] - Diff between revs 30 and 38

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 30 Rev 38
Line 73... Line 73...
                return -2;
                return -2;
        if(addr != 0x08 && addr != 0x6 )
        if(addr != 0x08 && addr != 0x6 )
                return -3;
                return -3;
        i=usb_bulk_write(img_dev_handle, addr, (char*)buf,  len, 500);
        i=usb_bulk_write(img_dev_handle, addr, (char*)buf,  len, 500);
        if(i!=len)
        if(i!=len)
 
        {
                DEBUG_LINE("write data have some error i= %d",i);
                DEBUG_LINE("write data have some error i= %d",i);
 
                return -1;
 
        }
        return i;
        return i;
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.