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)
 

Max heap size (from linker script's "__neorv32_heap_size")

char __crt0_max_heap []
 
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

Variable Documentation

◆ __crt0_max_heap

char __crt0_max_heap[]
extern

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

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