AVR USART hardware dependant implementation.
More...
Detailed Description
AVR USART hardware dependant implementation.
A pointer to devUsartAvr0 or devUsartAvr1 must be passed to NutRegisterDevice() to bind the corresponding device driver to the Nut/OS kernel.
The AVR USART devices make use of the hardware independant USART Device Driver
Define Documentation
#define UART_CTS_PORT UART0_CTS_PORT |
#define UART_CTS_PIN UART0_CTS_PIN |
#define UART_CTS_DDR UART0_CTS_DDR |
#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 |
#define UART_CTS_PORT UART1_CTS_PORT |
#define UART_CTS_PIN UART1_CTS_PIN |
#define UART_CTS_DDR UART1_CTS_DDR |
#define XOFF_PENDING 0x20 |
Variable Documentation
Initial value: {
0,
{'u', 'a', 'r', 't', '0', 0, 0, 0, 0},
IFTYP_CHAR,
0,
0,
0,
&dcb_usart0,
UsartInit,
UsartIOCtl,
UsartRead,
UsartWrite,
UsartWrite_P,
UsartOpen,
UsartClose,
UsartSize
}
USART0 device information structure.
An application must pass a pointer to this structure to NutRegisterDevice() before using the serial communication driver of the AVR's on-chip USART0.
The device is named uart0.
Initial value: {
0,
{'u', 'a', 'r', 't', '1', 0, 0, 0, 0},
IFTYP_CHAR,
1,
0,
0,
&dcb_usart1,
UsartInit,
UsartIOCtl,
UsartRead,
UsartWrite,
UsartWrite_P,
UsartOpen,
UsartClose,
UsartSize
}
USART1 device information structure.
An application must pass a pointer to this structure to NutRegisterDevice() before using the serial communication driver of the AVR's on-chip USART1.
The device is named uart1.