URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 50 |
Rev 51 |
Line 71... |
Line 71... |
*
|
*
|
* @return Irrelevant.
|
* @return Irrelevant.
|
**************************************************************************/
|
**************************************************************************/
|
int main() {
|
int main() {
|
|
|
// init UART (primary UART = UART0; if no id number is specified the primary UART is used) at default baud rate, no parity bits
|
// init UART (primary UART = UART0; if no id number is specified the primary UART is used) at default baud rate, no parity bits, ho hw flow control
|
neorv32_uart_setup(BAUD_RATE, 0b00);
|
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
|
|
|
// check if GPIO unit is implemented at all
|
// check if GPIO unit is implemented at all
|
if (neorv32_gpio_available() == 0) {
|
if (neorv32_gpio_available() == 0) {
|
neorv32_uart_print("Error! No GPIO unit synthesized!\n");
|
neorv32_uart_print("Error! No GPIO unit synthesized!\n");
|
return 0; // nope, no GPIO unit synthesized
|
return 0; // nope, no GPIO unit synthesized
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.