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 36

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
 
4
#include "../support/spr_defs.h"
5
 
6 36 rfajardo
#include "../drivers/uart.h"
7 2 rfajardo
 
8
int main()
9
{
10
        uart_init();
11
 
12
        int_init();
13
        int_add(2,&uart_interrupt);
14
 
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.