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

SDI test program (direct access to the SDI module). More...

#include <neorv32.h>
#include <string.h>

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

void sdi_put (void)
 
void sdi_get (void)
 
int main ()
 

Detailed Description

SDI test program (direct access to the SDI module).

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Function Documentation

◆ main()

int main ( void )

This program provides an interactive console for the SDI module.

Note
This program requires UART0 and the SDI to be synthesized.
Returns
Irrelevant.

◆ sdi_get()

void sdi_get ( void )

Read data from SDI RX buffer.

◆ sdi_put()

void sdi_put ( void )

Write data to SDI TX buffer.