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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [sw/] [uart/] [uart.c] - Diff between revs 36 and 38

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 36 Rev 38
#include "../support/support.h"
#include "../support/support.h"
#include "../support/board.h"
#include "../support/board.h"
 
 
#include "../support/spr_defs.h"
#include "../support/spr_defs.h"
 
 
#include "../drivers/uart.h"
#include "../drivers/uart.h"
 
 
int main()
int main()
{
{
        uart_init();
        uart_init();
 
 
        int_init();
        int_init();
        int_add(2,&uart_interrupt);
        int_add(UART_IRQ, &uart_interrupt);
 
 
        /* 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");
 
 
        report(0xdeaddead);
        report(0xdeaddead);
        or32_exit(0);
        or32_exit(0);
}
}
 
 

powered by: WebSVN 2.1.0

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