NEORV32 - Software Framework Documentation
main.c File Reference

Simple demo program for the default custom functions subsystem (CFS) module. More...

#include <neorv32.h>

Macros

User configuration
#define BAUD_RATE   19200
 
#define TESTCASES   4
 

Functions

Prototypes
uint32_t xorshift32 (void)
 
int main ()
 

Detailed Description

Simple demo program for the default custom functions subsystem (CFS) module.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

◆ TESTCASES

#define TESTCASES   4

Number of test cases per CFS function

Function Documentation

◆ main()

int main ( void  )

Main function

Note
This program requires the CFS and UART0.
Returns
0 if execution was successful

◆ xorshift32()

uint32_t xorshift32 ( void  )

Pseudo-Random Number Generator (to generate deterministic test vectors).

Returns
Random data (32-bit).