部分翻译
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
5 |
ZTEX |
/*!
|
| 2 |
|
|
flashbench -- Flash memory benchmark for ZTEX USB-FPGA Module 1.15
|
| 3 |
|
|
Copyright (C) 2009-2011 ZTEX GmbH.
|
| 4 |
|
|
http://www.ztex.de
|
| 5 |
|
|
|
| 6 |
|
|
This program is free software; you can redistribute it and/or modify
|
| 7 |
|
|
it under the terms of the GNU General Public License version 3 as
|
| 8 |
|
|
published by the Free Software Foundation.
|
| 9 |
|
|
|
| 10 |
|
|
This program is distributed in the hope that it will be useful, but
|
| 11 |
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 13 |
|
|
General Public License for more details.
|
| 14 |
|
|
|
| 15 |
|
|
You should have received a copy of the GNU General Public License
|
| 16 |
|
|
along with this program; if not, see http://www.gnu.org/licenses/.
|
| 17 |
|
|
!*/
|
| 18 |
|
|
|
| 19 |
|
|
#include[ztex-conf.h] // Loads the configuration macros, see ztex-conf.h for the available macros
|
| 20 |
|
|
#include[ztex-utils.h] // include basic functions and variables
|
| 21 |
|
|
|
| 22 |
|
|
// select ZTEX USB FPGA Module 1.15 as target (required for FPGA configuration)
|
| 23 |
|
|
IDENTITY_UFM_1_15(10.13.0.0,0);
|
| 24 |
|
|
|
| 25 |
|
|
// this product string is also used for identification by the host software
|
| 26 |
|
|
#define[PRODUCT_STRING]["flashbench for UFM 1.15"]
|
| 27 |
|
|
|
| 28 |
|
|
// enable Flash support
|
| 29 |
|
|
ENABLE_FLASH;
|
| 30 |
|
|
|
| 31 |
|
|
// include the main part of the firmware kit, define the descriptors, ...
|
| 32 |
|
|
#include[ztex.h]
|
| 33 |
|
|
|
| 34 |
|
|
void main(void)
|
| 35 |
|
|
{
|
| 36 |
|
|
init_USB(); // init everything ...
|
| 37 |
|
|
|
| 38 |
|
|
while (1) { } // ... and twiddle thumbs
|
| 39 |
|
|
}
|
| 40 |
|
|
|
© copyright 1999-2013
OpenCores.org, equivalent to ORSoC AB, all rights reserved. OpenCores®, registered trademark.