URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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);
|
|
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.