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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [tests/] [uart/] [sim/] [uart-simple.c] - Diff between revs 349 and 393

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 349 Rev 393
Line 1... Line 1...
 
/*
 
 * 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);
 
 
 
  exit(0x8000000d);
 
 
 
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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