uart.h File Reference
#include "FreeRTOS.h"
#include "queue.h"
#include <stdint.h>
#include "pins.h"
Go to the source code of this file.
Data Structures | |
struct | KUARTConf |
struct | KUART |
Macros | |
#define | K_NUM_UARTS YOTTA_CFG_HARDWARE_UARTCOUNT |
#define | K_UART_CONSOLE YOTTA_CFG_HARDWARE_CONSOLE_UART |
#define | K_UART_CONSOLE_BAUDRATE YOTTA_CFG_HARDWARE_CONSOLE_BAUDRATE |
Enumerations | |
enum | KUARTNum { K_UART1 = 0, K_UART2, K_UART3, K_UART4, K_UART5, K_UART6 } |
enum | KWordLen { K_WORD_LEN_7BIT = 0, K_WORD_LEN_8BIT, K_WORD_LEN_9BIT } |
enum | KStopBits { K_STOP_BITS_1 = 0, K_STOP_BITS_1_5, K_STOP_BITS_2 } |
enum | KParity { K_PARITY_NONE = 0, K_PARITY_EVEN, K_PARITY_ODD } |
Functions | |
KUARTConf | k_uart_conf_defaults (void) |
void | k_uart_init (KUARTNum uart, KUARTConf *conf) |
void | k_uart_console_init (void) |
int | k_uart_read (KUARTNum uart, char *ptr, int len) |
int | k_uart_write (KUARTNum uart, char *ptr, int len) |
void | k_uart_write_immediate (KUARTNum uart, char c) |
int | k_uart_rx_queue_len (KUARTNum uart) |
void | k_uart_rx_queue_push (KUARTNum uart, char c, void *task_woken) |
int | k_uart_rx_pin (KUARTNum uart) |
int | k_uart_tx_pin (KUARTNum uart) |
KUART * | kprv_uart_get (KUARTNum uart) |
void | kprv_uart_dev_init (KUARTNum uart) |
void | kprv_uart_enable_tx_int (KUARTNum uart) |