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

Demo/test program for NEORV32's newlib C standard library support. More...

#include <neorv32.h>
#include <unistd.h>
#include <time.h>
#include <stdlib.h>

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

Print main's return code using a destructor
void main_destructor_test (void)
 
int main ()
 

Detailed Description

Demo/test program for NEORV32's newlib C standard library support.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Function Documentation

◆ main()

int main ( void )

Main function: Check some of newlib's core functions.

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

◆ main_destructor_test()

void main_destructor_test ( void )

Main function: Check some of newlib's core functions.

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