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

Dual-core SMP demo program using the NEORV32 hardware spinlocks. More...

#include <neorv32.h>

Macros

#define BAUD_RATE   19200
 

Enumerations

enum  hw_spinlock_enum { SPINLOCK_UART0 = 0 }
 

Functions

int app_main (void)
 
int main (void)
 

Variables

volatile uint8_t core1_stack [2048]
 

Detailed Description

Dual-core SMP demo program using the NEORV32 hardware spinlocks.

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

User configuration

Enumeration Type Documentation

◆ hw_spinlock_enum

Hardware spinlock enumeration

Function Documentation

◆ app_main()

int app_main ( void )

Main application that is executed on both cores.

Returns
Irrelevant.

◆ main()

int main ( void )

Main function for core 0 (primary core).

Attention
This program requires the dual-core configuration, the CLINT, UART0 and the HWSPINLOCK module.
Returns
Irrelevant (but can be inspected by the debugger).

Variable Documentation

◆ core1_stack

volatile uint8_t core1_stack[2048]

Global variables