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

SLINK demo program. More...

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

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

void slink_rx_firq_handler (void)
 
void slink_tx_firq_handler (void)
 
uint32_t xorshift32 (void)
 
int main ()
 

Detailed Description

SLINK demo program.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Function Documentation

◆ main()

int main ( void  )

Simple SLINK demo program.

Note
This program requires the UART0 and the SLINK to be synthesized.
Returns
=! 0 if execution failed.

◆ slink_rx_firq_handler()

void slink_rx_firq_handler ( void  )

SLINK RX interrupt handler.

◆ slink_tx_firq_handler()

void slink_tx_firq_handler ( void  )

SLINK TX interrupt handler.

◆ xorshift32()

uint32_t xorshift32 ( void  )

Simple pseudo random number generator.

Returns
Random number.