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

Subversion Repositories usb_fpga_1_11

[/] [usb_fpga_1_11/] [trunk/] [java/] [ztex/] [EzUsb.java] - Diff between revs 2 and 3

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

Rev 2 Rev 3
Line 51... Line 51...
// ******* uploadFirmware ******************************************************
// ******* uploadFirmware ******************************************************
/**
/**
  * Uploads the Firmware to a Cypress EZ-USB device.
  * Uploads the Firmware to a Cypress EZ-USB device.
  * @param handle The handle of the device.
  * @param handle The handle of the device.
  * @param ihxFile The firmware image.
  * @param ihxFile The firmware image.
  * @return The upload time in ms.
  * @return the upload time in ms.
  * @throws FirmwareUploadException if an error occurred while attempting to upload the firmware.
  * @throws FirmwareUploadException if an error occurred while attempting to upload the firmware.
  */
  */
    public static long uploadFirmware (int handle, IhxFile ihxFile ) throws FirmwareUploadException {
    public static long uploadFirmware (int handle, IhxFile ihxFile ) throws FirmwareUploadException {
        final int transactionBytes = 256;
        final int transactionBytes = 256;
        byte[] buffer = new byte[transactionBytes];
        byte[] buffer = new byte[transactionBytes];

powered by: WebSVN 2.1.0

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