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 393 and 431

Only display areas with differences | Details | Blame | View Log

Rev 393 Rev 431
/*
/*
 * UART hello world
 * UART hello world
 *
 *
 * Tests UARTs by printing a hello world string.
 * Tests UARTs by printing a hello world string.
 *
 *
 * Julius Baxter, julius.baxter@orsoc.se
 * Julius Baxter, julius.baxter@orsoc.se
 *
 *
*/
*/
 
 
#include "cpu-utils.h"
#include "cpu-utils.h"
#include "board.h"
#include "board.h"
#include "uart.h"
#include "uart.h"
#include "printf.h"
#include "printf.h"
 
 
void hello_from_uart(int uart_core)
void hello_from_uart(int uart_core)
{
{
  uart_init(uart_core);
  uart_init(uart_core);
  printf("\n\tHello world from UART%d \n\0", uart_core);
  printf("\n\tHello world from UART%d \n\0", uart_core);
}
}
 
 
int main()
int main()
{
{
 
 
  hello_from_uart(0);
  hello_from_uart(0);
 
 
  exit(0x8000000d);
  report(0x8000000d);
 
 
 
  exit(0);
 
 
}
}
 
 

powered by: WebSVN 2.1.0

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