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

Subversion Repositories btcminer

[/] [btcminer/] [trunk/] [ztex_ufm1_15d.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ZTEX
/*!
2
   default -- Default Firmware for ZTEX USB-FPGA Modules 1.15x
3
   Copyright (C) 2009-2012 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
// Endpoint 2 is used to high speed FPGA configuration
23
EP_CONFIG(2,0,BULK,OUT,512,4);
24
 
25
// select ZTEX USB FPGA Module 1.15 as target (required for FPGA configuration)
26
IDENTITY_UFM_1_15(10.13.0.0,0);
27
ENABLE_UFM_1_15X_DETECTION;      // avoids some warnings
28
 
29
// enables high speed FPGA configuration, use EP 2
30
ENABLE_HS_FPGA_CONF(2);
31
 
32
// this product string can also used for identification by the host software
33
#define[PRODUCT_STRING]["USB-FPGA Module 1.15d (default)"]
34
 
35
#include[ztex.h]
36
 
37
void main(void)
38
{
39
    init_USB();                                         // init everything
40
 
41
    while (1) { }                                       //  twiddle thumbs
42
}
43
 
44
 

powered by: WebSVN 2.1.0

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