URL
https://opencores.org/ocsvn/usb_fpga_1_11/usb_fpga_1_11/trunk
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];
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.