#include <uart.h>
#include <uart_defs.h>
#include <uart_private.h>
Go to the source code of this file.
Functions | |
int | uart_send (uint8_t num, char c) |
int uart_send | ( | uint8_t | num, | |
char | c | |||
) |
uart_send is used to send data to the uart 'num'. The data is first stored in the FIFO before beeing sent. If the FIFO is full, the function wait until the uart is ready. The function returns c.
Definition at line 28 of file uart_send.c.
References cirbuf_add_head(), g_tx_fifo, GLOBAL_IRQ_ARE_MASKED, RXCIE, uart_regs, uart_send_next_char(), uart_send_nowait(), and UDRE.