NEORV32 - Software Framework Documentation
Functions
main.c File Reference

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

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

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

int main ()
 
void __neorv32_crt0_after_main (int32_t return_code)
 

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

◆ __neorv32_crt0_after_main()

void __neorv32_crt0_after_main ( int32_t  return_code)

"after-main" handler that is executed after the application's main function returns (called by crt0.S start-up code)

◆ main()

int main ( void  )

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

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