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/] [examples/] [fx3sdemo/] [fx3sdemo.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ZTEX
/*%
2
   fx3sdemo -- Demonstrates common features of the FX3S
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
 
22
// loads ztex header files and defeult configuration macros (fixed part of the SDK)
23
#include "ztex-conf.c"
24
 
25
#undef ZTEX_PRODUCT_STRING 
26
#define ZTEX_PRODUCT_STRING "Demo for ZTEX FX3S Boards"
27
 
28
//#define ZTEX_GPIO_SIMPLE_BITMAP1 ( 1 << (43-32) | 1 << (44-32) )
29
 
30
#define ENABLE_SD_FLASH
31
 
32
 
33
#include "ztex.c"       
34
 
35
/*
36
 * Main function
37
 */
38
int main (void)
39
{
40
    // global configuration
41
//    ztex_app_thread_stack = 0x2000;   // stack size of application thread, default: 0x1000
42
//    ztex_app_thread_prio = 7;         // priority of application thread, should be 7..15, default: 8
43
//    ztex_allow_lpm = CyFalse;         // do not allow transition into low power mode, default: allowed
44
 
45
    ztex_main();        // starts the OS and never returns
46
    return 0;            // makes the compiler happy
47
}

powered by: WebSVN 2.1.0

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