Files | |
file | uart.c |
UART implementation (license: GPLv2). | |
file | uart.h |
UART header (license: GPLv2). | |
Functions | |
void | uart_init () |
Initializes the UART. | |
void | uart_connect_stdio () |
Connects the UART with the I/O functions of the C Standard Library. | |
void | uart_putc (uint8_t c) |
Transmits a single character/byte via the UART. | |
void | uart_putc_hex (uint8_t b) |
Transmits a byte in hexadecimal ASCII representation via the UART. | |
uint8_t | uart_getc () |
Receives a byte from the UART. | |
uint8_t | uart_getc_try () |
Receives a byte from the UART without blocking. |
void uart_putc | ( | uint8_t | c | ) |
Transmits a single character/byte via the UART.
[in] | c | The byte to send. |
void uart_putc_hex | ( | uint8_t | b | ) |
Transmits a byte in hexadecimal ASCII representation via the UART.
[in] | b | The byte to transmit. |
uint8_t uart_getc | ( | ) |
Receives a byte from the UART.
uint8_t uart_getc_try | ( | ) |
Receives a byte from the UART without blocking.
0
otherwise.