Line 1... |
Line 1... |
// #################################################################################################
|
// #################################################################################################
|
// # << NEORV32 - "Hello World" Demo Program >> #
|
// # << NEORV32 - "Hello World" Demo Program >> #
|
// # ********************************************************************************************* #
|
// # ********************************************************************************************* #
|
// # BSD 3-Clause License #
|
// # BSD 3-Clause License #
|
// # #
|
// # #
|
// # Copyright (c) 2020, Stephan Nolting. All rights reserved. #
|
// # Copyright (c) 2021, Stephan Nolting. All rights reserved. #
|
// # #
|
// # #
|
// # Redistribution and use in source and binary forms, with or without modification, are #
|
// # Redistribution and use in source and binary forms, with or without modification, are #
|
// # permitted provided that the following conditions are met: #
|
// # permitted provided that the following conditions are met: #
|
// # #
|
// # #
|
// # 1. Redistributions of source code must retain the above copyright notice, this list of #
|
// # 1. Redistributions of source code must retain the above copyright notice, this list of #
|
Line 66... |
Line 66... |
neorv32_rte_setup();
|
neorv32_rte_setup();
|
|
|
// init UART at default baud rate, no parity bits, no rx interrupt, no tx interrupt
|
// init UART at default baud rate, no parity bits, no rx interrupt, no tx interrupt
|
neorv32_uart_setup(BAUD_RATE, 0b00, 0, 0);
|
neorv32_uart_setup(BAUD_RATE, 0b00, 0, 0);
|
|
|
|
// check available hardware extensions and compare with compiler flags
|
|
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch
|
|
|
// 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");
|