NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
SPI bus explorer (execute SPI transactions by hand). More...
Macros | |
User configuration | |
#define | BAUD_RATE 19200 |
Functions | |
void | spi_cs (uint32_t type) |
void | spi_trans (void) |
void | spi_setup (void) |
void | aux_print_hex_byte (uint8_t byte) |
int | main () |
Variables | |
uint32_t | spi_configured |
SPI bus explorer (execute SPI transactions by hand).
#define BAUD_RATE 19200 |
UART BAUD rate
void aux_print_hex_byte | ( | uint8_t | byte | ) |
Print HEX byte.
[in] | byte | Byte to be printed as 2-cahr hex value. |
int main | ( | void | ) |
This program provides an interactive console to communicate with SPI devices.
void spi_cs | ( | uint32_t | type | ) |
Enable or disable chip-select line
[in] | type | 0=disable, 1=enable |
void spi_setup | ( | void | ) |
Configure SPI module
void spi_trans | ( | void | ) |
SPI data transfer