#include <uart.h>
#include <uart_defs.h>
#include <uart_private.h>
Go to the source code of this file.
Functions | |
int | uart_send_nowait (uint8_t num, char c) |
int uart_send_nowait | ( | uint8_t | num, | |
char | c | |||
) |
uart_send_nowait 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, data is dropped and the function returns -1, else it returns the character c.
Definition at line 31 of file uart_send_nowait.c.
References cirbuf_add_head(), CIRBUF_IS_EMPTY, CIRBUF_IS_FULL, g_tx_fifo, IRQ_LOCK, IRQ_UNLOCK, RXCIE, sbi, uart_regs, UDRE, and UDRIE.
Referenced by uart_send().