• 大小: 1.28MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-29
  • 语言: 其他
  • 标签: sunxi  tools  fel  windows  

资源简介

我自己移植的windows下的sunxitools-fel,可以用于全志cpu的fel模式。cpu调试

资源截图

代码片段和文件信息

/* USB Benchmark for libusb-win32

 Copyright (C) 2010 Travis Robinson. 
 website: http://sourceforge.net/projects/libusb-win32
 
 This program is free software; you can redistribute it and/or modify it
 under the terms of the GNU Lesser General Public License as published by 
 the Free Software Foundation; either version 2 of the License or 
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful but 
 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
 License for more details.
 
 You should have received a copy of the GNU Lesser General Public License
 along with this program; if not please visit www.gnu.org.
*/

#include 
#include 
#include 
#include 

#include “lusb0_usb.h“

#define _BENCHMARK_VER_ONLY
#include “benchmark_rc.rc“

#define MAX_OUTSTANDING_TRANSFERS 10

// This is used only in VerifyData() for display information
// about data validation mismatches.
#define CONVDAT(format...) printf(“[data-mismatch] “ format__VA_ARGS__)

// All output is directed through these macros.
//
#define LOG(LogTypeStringformat...)  printf(“%s[“ __FUNCTION__ “] “format LogTypeString __VA_ARGS__)
#define CONERR(format...) LOG(“Error:“format__VA_ARGS__)
#define CONMSG(format...) LOG(““format__VA_ARGS__)
#define CONWRN(format...) LOG(“Warn:“format__VA_ARGS__)
#define CONDBG(format...) LOG(““format__VA_ARGS__)

#define CONERR0(message) CONERR(“%s“ message)
#define CONMSG0(message) CONMSG(“%s“ message)
#define CONWRN0(message) CONWRN(“%s“ message)
#define CONDBG0(message) CONDBG(“%s“ message)

// This is the libusb-win32 return code for a transfer that timed out.
#define TRANSFER_TIMEDOUT -116

// Custom vendor requests that must be implemented in the benchmark firmware.
// Test selection can be bypassed with the “notestselect“ argument.
//
enum BENCHMARK_DEVICE_COMMANDS
{
    SET_TEST = 0x0E
    GET_TEST = 0x0F
};

// Tests supported by the official benchmark firmware.
//
enum BENCHMARK_DEVICE_TEST_TYPE
{
    TestTypeNone = 0x00
    TestTypeRead = 0x01
    TestTypeWrite = 0x02
    TestTypeLoop = TestTypeRead|TestTypeWrite
};

// This software was mainly created for testing the libusb-win32 kernel & user driver.
enum BENCHMARK_TRANSFER_MODE
{
// Tests for the libusb-win32 sync transfer function.
    TRANSFER_MODE_SYNC

// Test for async function iso transfers and queued transfers
    TRANSFER_MODE_ASYNC
};

// Holds all of the information about a test.
struct BENCHMARK_TEST_PARAM
{
    // User configurable value set from the command line.
    //
    INT Vid; // Vendor ID
    INT Pid; // Porduct ID
    INT Intf; // Interface number
INT Altf; // Alt Interface number
    INT Ep; // Endpoint number (1-15)
    INT Refresh;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-06 11:48  mysunxitools-win-release\
     目录           0  2018-03-06 11:48  mysunxitools-win-release\driver\
     文件        8096  2018-03-05 21:40  mysunxitools-win-release\driver\AllWinnerH3.inf
     目录           0  2018-03-06 11:48  mysunxitools-win-release\driver\amd64\
     文件       76384  2018-03-05 21:40  mysunxitools-win-release\driver\amd64\libusb0.dll
     文件       52832  2018-03-05 21:40  mysunxitools-win-release\driver\amd64\libusb0.sys
     目录           0  2018-03-06 11:48  mysunxitools-win-release\driver\ia64\
     文件      157792  2018-03-05 21:40  mysunxitools-win-release\driver\ia64\libusb0.dll
     文件      110176  2018-03-05 21:40  mysunxitools-win-release\driver\ia64\libusb0.sys
     文件       25088  2018-03-05 21:40  mysunxitools-win-release\driver\installer_x64.exe
     文件       23552  2018-03-05 21:40  mysunxitools-win-release\driver\installer_x86.exe
     目录           0  2018-03-06 11:48  mysunxitools-win-release\driver\license\
     目录           0  2018-03-06 11:48  mysunxitools-win-release\driver\license\libusb0\
     文件       44153  2018-03-05 21:40  mysunxitools-win-release\driver\license\libusb0\installer_license.txt
     目录           0  2018-03-06 11:48  mysunxitools-win-release\driver\x86\
     文件       42592  2018-03-05 21:40  mysunxitools-win-release\driver\x86\libusb0.sys
     文件       67680  2018-03-05 21:40  mysunxitools-win-release\driver\x86\libusb0_x86.dll
     文件      132855  2018-03-06 11:36  mysunxitools-win-release\fel.exe
     目录           0  2018-03-06 11:42  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\
     文件         320  2018-03-05 21:36  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\AUTHORS.txt
     目录           0  2018-03-06 11:42  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\
     目录           0  2018-03-06 11:42  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\amd64\
     文件       63488  2018-03-05 21:36  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\amd64\install-filter-win.exe
     文件       44544  2018-03-05 21:36  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\amd64\install-filter.exe
     文件       76384  2018-03-05 21:36  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\amd64\libusb0.dll
     文件       52832  2018-03-05 21:36  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\amd64\libusb0.sys
     文件       15360  2018-03-05 21:36  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\amd64\testlibusb-win.exe
     文件       10752  2018-03-05 21:36  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\amd64\testlibusb.exe
     目录           0  2018-03-06 11:42  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\ia64\
     文件      121344  2018-03-05 21:36  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\ia64\install-filter-win.exe
     文件       87040  2018-03-05 21:36  mysunxitools-win-release\libusb-win32-bin-1.2.6.0\bin\ia64\install-filter.exe
............此处省略43个文件信息

评论

共有 条评论