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

Example of an ISR driven SPI transfer. More...

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

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

void spi_irq_handler (void)
 
int main ()
 

Variables

t_neorv32_spi g_neorv32_spi
 

Detailed Description

Example of an ISR driven SPI transfer.

Author
Andreas Kaeberlein

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Function Documentation

◆ main()

int main ( void )

This program demonstrates the usage of an ISR driven SPI transfer

Note
This program requires the UART and the SPI to be synthesized.
Returns
Irrelevant.

◆ spi_irq_handler()

void spi_irq_handler ( void )

SPI Interrupt Handler

Note
Captures/Transmits the data to the SPI core
Returns
void.