RasPi Direct Hardware Access
Integrated peripheral access without operating system drivers.
|
These functions allow direct access to the Raspberry Pi's UART (RS-232) controller without using the regular Linux device driver. More...
Functions | |
static void | uart_init (unsigned int bitrate) |
Configure UART hardware for given bit rate. 115200 bit/s is the fastest speed available. | |
static int | uart_poll (int num) |
Return true if at least num bytes are available in the receive FIFO. Only guaranteed to work correctly with num == 1. Larger values may return true even if less bytes (but at least one) are available. | |
static uint8_t | uart_read (void) |
Read a single byte received via UART. Block if FIFO is currently empty. | |
static void | uart_write (uint8_t data) |
Send data via UART. Block if FIFO is currently full. | |
static void | uart_flush () |
Block until transmit FIFO is empty. | |
These functions allow direct access to the Raspberry Pi's UART (RS-232) controller without using the regular Linux device driver.
This is useful when running under Xenomai or a similar real-time OS.
Declared in raspi/uart.h
.