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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [sw/] [uart/] [uart.c] - Blame information for rev 174

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

Line No. Rev Author Line
1 158 rfajardo
#include <interconnect.h>
2 80 rfajardo
#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 158 rfajardo
        uart_init(UART_BASE);
11 2 rfajardo
 
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 149 rfajardo
        uart_print_str("Hello World.\n");
18 2 rfajardo
 
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.