NEORV32 - Software Framework Documentation
Loading...
Searching...
No Matches
Functions
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)
 
uint32_t hexstr_to_uint (char *buffer, uint8_t length)
 
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

◆ hexstr_to_uint()

uint32_t hexstr_to_uint ( char * buffer,
uint8_t length )

Helper function to convert N hex chars string into uint32_T

Parameters
[in,out]bufferPointer to array of chars to convert into number.
[in,out]lengthLength of the conversion string.
Returns
Converted number.

◆ 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.