NEORV32 - Software Framework Documentation
Loading...
Searching...
No Matches
Functions
main.c File Reference

Using the RISC-V trigger module from machine-mode. More...

#include <neorv32.h>
#include <string.h>

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

void dummy_function (void)
 
int main ()
 

Detailed Description

Using the RISC-V trigger module from machine-mode.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Function Documentation

◆ dummy_function()

void dummy_function ( void  )

Just a simple dummy function that will fire the trigger module.

Note
Make sure this is not inlined.

◆ main()

int main ( void  )

Example program to show how to cause an exception when reaching a specific instruction address using the RISC-V trigger module.

Note
This program requires the 'Sdtrig' ISA extension.
Returns
0 if execution was successful