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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [tests/] [uart/] [sim/] [uart-simple.c] - Rev 850

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

powered by: WebSVN 2.1.0

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