|
Open Garden
0.10.1-21
|
RS232 - IO functions. More...

Go to the source code of this file.
Data Structures | |
| struct | uartStruct |
Macros | |
| #define | UART_BAUD_0 9600 |
| #define | UART_BAUD_1 9600 |
| #define | UART_RXBUF_SIZE 64 |
| #define | UART_TXBUF_SIZE 64 |
| #define | UART_RXBUF_MASK ( UART_RXBUF_SIZE - 1 ) |
| #define | UART_TXBUF_MASK ( UART_TXBUF_SIZE - 1 ) |
Functions | |
| void | uart_init (const uint8_t port) |
| void | uart_shutdown (const uint8_t port) |
| char | uart_getchar (const uint8_t port, const uint8_t locked) |
| void | uart_putchar (const uint8_t port, const char c) |
| void | uart_printstr (const uint8_t port, const char *s) |
RS232 - IO functions.
| #define UART_BAUD_0 9600 |
UART 0 baud rate
| #define UART_BAUD_1 9600 |
UART 1 baud rate
| #define UART_RXBUF_MASK ( UART_RXBUF_SIZE - 1 ) |
IO Buffers and masks
| #define UART_RXBUF_SIZE 64 |
IO Buffers and masks
| #define UART_TXBUF_MASK ( UART_TXBUF_SIZE - 1 ) |
IO Buffers and masks
| #define UART_TXBUF_SIZE 64 |
IO Buffers and masks
| char uart_getchar | ( | const uint8_t | port, |
| const uint8_t | locked | ||
| ) |
Get a char from the uart port.
| void uart_init | ( | const uint8_t | port | ) |
Init the uart port.
tx/rx enable
tx/rx enable
| void uart_printstr | ( | const uint8_t | port, |
| const char * | s | ||
| ) |
Send a C (NUL-terminated) string down the UART Tx.
| void uart_putchar | ( | const uint8_t | port, |
| const char | c | ||
| ) |
Send character c down the UART Tx, wait until tx holding register is empty.
| void uart_shutdown | ( | const uint8_t | port | ) |
Disable the uart port.
1.8.13