NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
Loading...
Searching...
No Matches
main.c File Reference

Showcase RISC-V semihosting. See https://embeddedinn.com/articles/tutorial/understanding-riscv-semihosting/. More...

#include <neorv32.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>

Macros

#define BAUD_RATE   19200
 

Functions

void ebreak_trap_handler (void)
 
int main ()
 

Detailed Description

Function Documentation

◆ ebreak_trap_handler()

void ebreak_trap_handler ( void )

EBREAK trap handler. In case we are using semihosting without a host being connected.

◆ main()

int main ( void )

Echo data from host's STDIN back to host's STDOUT.

Note
This program requires the UART interface to be synthesized.
Returns
Should never return.