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

Subversion Repositories xenie

[/] [xenie/] [trunk/] [examples/] [Eth_example/] [mb_fw/] [xenie_eth_test_womtd/] [src/] [main.c] - Diff between revs 4 and 13

Show entire file | Details | Blame | View Log

Rev 4 Rev 13
Line 112... Line 112...
 
 
 
 
 
 
/* System information defaults */
/* System information defaults */
static struct sys_info_s sys_info = {
static struct sys_info_s sys_info = {
                .fwRev = 0x100,
                .fwRev = 0x101,
                .eth_status = {-1, -1},
                .eth_status = {-1, -1},
                .uid = {00, 00, 00, 00, 00, 00},
                .uid = {00, 00, 00, 00, 00, 00},
                .eth_settings = {
                .eth_settings = {
                                .mac = {10, 20, 30, 40, 50, 60},
                                .mac = {10, 20, 30, 40, 50, 60},
                                .ip = 0xc0a80a60,
                                .ip = 0xc0a80a60,
Line 401... Line 401...
        }
        }
 
 
        /*
        /*
         * Setup SPI driver to work with flash
         * Setup SPI driver to work with flash
         */
         */
 
 
        res = spansion_flash_init(&sf_dev, &Spi, SPANSION_FLASH_CS);
        res = spansion_flash_init(&sf_dev, &Spi, SPANSION_FLASH_CS);
        if(res != XST_SUCCESS) {
        if(res != XST_SUCCESS) {
                goto failure;
                goto failure;
        }
        }
        /* Put spi to polled mode */
 
        XSpi_IntrGlobalDisable(&Spi);
 
 
 
        /*
        /*
         * Initialize driver used to read flash in quad mode
         * Initialize driver used to read flash in quad mode
         */
         */
        res = spansion_flash_quad_mode(&sf_dev);
        res = spansion_flash_quad_mode(&sf_dev);

powered by: WebSVN 2.1.0

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