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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [sw/] [eth/] [eth.c] - Diff between revs 64 and 80

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 64 Rev 80
Line 1... Line 1...
#include "../../backend/board.h"
#include <board.h>
#include "../support/support.h"
#include <support.h>
 
#include <or1200.h>
 
#include <int.h>
 
 
#include "../support/or1200.h"
#include <uart.h>
 
#include <eth.h>
#include "../drivers/uart.h"
 
#include "../drivers/eth.h"
 
 
 
 
 
extern int eth_rx_len;
extern int eth_rx_len;
extern int eth_rx_done, eth_tx_done;
extern int eth_rx_done, eth_tx_done;
extern unsigned char * eth_rx_data;
extern unsigned char * eth_rx_data;
Line 27... Line 27...
        eth_recv_ack();
        eth_recv_ack();
}
}
 
 
int main()
int main()
{
{
        unsigned long lalala;
 
        uart_init();
        uart_init();
 
 
        int_init();
        int_init();
        eth_init();
        eth_init();
        int_add(UART_IRQ, &uart_interrupt);
        int_add(UART_IRQ, &uart_interrupt, NULL);
        int_add(ETH_IRQ, &eth_interrupt);
        int_add(ETH_IRQ, &eth_interrupt, NULL);
 
 
        /* We can't use printf because in this simple example
        /* We can't use printf because in this simple example
           we don't link C library. */
           we don't link C library. */
        uart_print_str("Hello World.\n\r");
        uart_print_str("Hello World.\n\r");
 
 

powered by: WebSVN 2.1.0

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