URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 37 |
Rev 42 |
Line 59... |
Line 59... |
*
|
*
|
* @return Irrelevant.
|
* @return Irrelevant.
|
**************************************************************************/
|
**************************************************************************/
|
int main() {
|
int main() {
|
|
|
// init UART at default baud rate, no rx interrupt, no tx interrupt
|
|
neorv32_uart_setup(BAUD_RATE, 0, 0);
|
|
|
|
// capture all exceptions and give debug info via UART
|
// capture all exceptions and give debug info via UART
|
// this is not required, but keeps us safe
|
// this is not required, but keeps us safe
|
neorv32_rte_setup();
|
neorv32_rte_setup();
|
|
|
|
// init UART at default baud rate, no parity bits, no rx interrupt, no tx interrupt
|
|
neorv32_uart_setup(BAUD_RATE, 0b00, 0, 0);
|
|
|
// print project logo via UART
|
// print project logo via UART
|
neorv32_rte_print_logo();
|
neorv32_rte_print_logo();
|
|
|
// say hello
|
// say hello
|
neorv32_uart_print("Hello world! :)\n");
|
neorv32_uart_print("Hello world! :)\n");
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.