NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
TWI bus explorer. More...
Macros | |
User configuration | |
#define | BAUD_RATE 19200 |
Functions | |
void | scan_twi (void) |
void | set_clock (void) |
void | send_twi (void) |
void | print_hex_byte (uint8_t data) |
int | main () |
TWI bus explorer.
#define BAUD_RATE 19200 |
UART BAUD rate
int main | ( | void | ) |
This program provides an interactive console to communicate with TWI devices.
void print_hex_byte | ( | uint8_t | data | ) |
Print byte as hex chars via UART0.
data | 8-bit data to be printed as two hex chars. |
void scan_twi | ( | void | ) |
Scan 7-bit TWI address space and print results
void send_twi | ( | void | ) |
Read/write menu to transfer 1 byte from/to bus
void set_clock | ( | void | ) |
TWI clock setup