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

Subversion Repositories minsoc

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

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

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

powered by: WebSVN 2.1.0

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