Nut/OS  4.10.3
API Reference
usart0avr.c File Reference
#include <cfg/os.h>
#include <cfg/arch/avr.h>
#include <string.h>
#include <sys/atom.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <dev/irqreg.h>
#include <dev/usartavr.h>
#include "usartavr.c"
Include dependency graph for usart0avr.c:

Go to the source code of this file.

Defines

#define UDRn   UDR0
#define UCSRnA   UCSR0A
#define UCSRnB   UCSR0B
#define UCSRnC   UCSR0C
#define UBRRnL   UBRR0L
#define UBRRnH   UBRR0H
#define sig_UART_RECV   sig_UART0_RECV
#define sig_UART_DATA   sig_UART0_DATA
#define sig_UART_TRANS   sig_UART0_TRANS
#define SIG_UART_RECV   SIG_UART0_RECV
#define SIG_UART_DATA   SIG_UART0_DATA
#define SIG_UART_TRANS   SIG_UART0_TRANS
#define dcb_usart   dcb_usart0

AVR USART0 Device

NUTDEVICE devUsartAvr0
 USART0 device information structure.

UART0 CTS Handshake Sense

UART0_CTS_IRQ must be defined in arch/avr.h

#define UART_CTS_PORT   UART0_CTS_PORT
#define UART_CTS_PIN   UART0_CTS_PIN
#define UART_CTS_DDR   UART0_CTS_DDR