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

Subversion Repositories usb_fpga_2_14

[/] [usb_fpga_2_14/] [trunk/] [default/] [usb-fpga-2.14/] [default.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ZTEX
/*%
2
   Default firmware and loader for ZTEX USB-FPGA Modules 2.14
3
   Copyright (C) 2009-2017 ZTEX GmbH.
4
   http://www.ztex.de
5
 
6
   Licensed under the Apache License, Version 2.0 (the "License");
7
   you may not use this file except in compliance with the License.
8
   You may obtain a copy of the License at
9
 
10
       http://www.apache.org/licenses/LICENSE-2.0
11
 
12
   Unless required by applicable law or agreed to in writing, software
13
   distributed under the License is distributed on an "AS IS" BASIS,
14
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
   See the License for the specific language governing permissions and
16
   limitations under the License.
17
%*/
18
#include "cyu3system.h"
19
#include "cyu3os.h"
20
#include "cyu3dma.h"
21
#include "cyu3error.h"
22
#include "cyu3usb.h"
23
#include "cyu3spi.h"
24
 
25
// loads ztex header files and defeult configuration macros (fixed part of the SDK)
26
#include "ztex-conf.c"
27
#include "ztex-ufm-2_14.c"
28
 
29
#define OUT_ENDPOINT    2
30
#define IN_ENDPOINT     4
31
#define ZTEX_FPGA_CONF_FAST_EP  6
32
 
33
#define GPIO_RESET 25
34
 
35
#define GPIO_GPIO0 24
36
#define GPIO_GPIO1 23
37
#define GPIO_GPIO2 39
38
#define GPIO_GPIO3 38
39
 
40
#define GPIO_CLK 26
41
#define GPIO_DATA 28
42
#define GPIO_STOP 29
43
 
44
#undef ZTEX_PRODUCT_STRING 
45
#define ZTEX_PRODUCT_STRING "Default Firmware for ZTEX USB-FPGA Modules 2.14"
46
 
47
 
48
#include "ztex-default.c"
49
 

powered by: WebSVN 2.1.0

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