URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [tests/] [uart/] [sim/] [uart-simple.c] - Rev 580
Go to most recent revision | Compare with Previous | Blame | View Log
/* * UART hello world * * Tests UARTs by printing a hello world string. * * Julius Baxter, julius.baxter@orsoc.se * */ #include "cpu-utils.h" #include "board.h" #include "uart.h" #include "printf.h" void hello_from_uart(int uart_core) { uart_init(uart_core); printf("\n\tHello world from UART%d \n\0", uart_core); } int main() { hello_from_uart(0); report(0x8000000d); exit(0); }
Go to most recent revision | Compare with Previous | Blame | View Log