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

Simple dual-core SMP demo program. More...

#include <neorv32.h>
#include "spinlock.h"

Macros

#define BAUD_RATE   19200
 

Functions

int main_core1 (void)
 
int main (void)
 

Variables

volatile uint8_t core1_stack [2048]
 

Detailed Description

Simple dual-core SMP demo program.

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

User configuration

Function Documentation

◆ main()

int main ( void )

Main function for core 0 (primary core).

Attention
This program requires the dual-core configuration, the CLINT, UART0 and the A/Zaamo ISA extension.
Returns
Irrelevant (but can be inspected by the debugger).

◆ main_core1()

int main_core1 ( void )

Main function for core 1 (secondary core).

Returns
Irrelevant (but can be inspected by the debugger).

Variable Documentation

◆ core1_stack

volatile uint8_t core1_stack[2048]

Global variables