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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [rc-1.0/] [sw/] [uart/] [uart.c] - Blame information for rev 141

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 80 rfajardo
#include <board.h>
2
#include <support.h>
3
#include <or1200.h>
4
#include <int.h>
5 2 rfajardo
 
6 80 rfajardo
#include <uart.h>
7 2 rfajardo
 
8
int main()
9
{
10
        uart_init();
11
 
12
        int_init();
13 80 rfajardo
        int_add(UART_IRQ, &uart_interrupt, NULL);
14 2 rfajardo
 
15
        /* We can't use printf because in this simple example
16
           we don't link C library. */
17
        uart_print_str("Hello World.\n\r");
18
 
19
        report(0xdeaddead);
20
        or32_exit(0);
21
}

powered by: WebSVN 2.1.0

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