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

Physical memory protection (PMP) example program. More...

#include <neorv32.h>

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

int main ()
 

Variables

uint32_t protected_var [4]
 

Detailed Description

Physical memory protection (PMP) example program.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Function Documentation

◆ main()

int main ( void  )

Main function

Note
This program requires the CPU PMP extension (with at least 2 regions) and UART0.
Returns
0 if execution was successful

Variable Documentation

◆ protected_var

uint32_t protected_var[4]
Initial value:
= {
0x11223344,
0x55667788,
0x00CAFE00,
0xDEADC0DE
}

Example variable that will be protected by the PMP