A pointer to devUsartAvr0 or devUsartAvr1 must be passed to NutRegisterDevice() to bind the corresponding device driver to the Nut/OS kernel.
NutRegisterDevice(&devUsartAvr0, 0, 0); fp = fopen("uart0", "r+"); fprintf("Hello world!\n");
The AVR USART devices make use of the hardware independant USART Device Driver
UART0 RTS Handshake Control | |
UART0_RTS_BIT must be defined in modem.h | |
#define | UART_RTS_PORT |
#define | UART_RTS_DDR |
#define | UART_RTS_BIT |
UART0 CTS Handshake Sense | |
UART0_CTS_BIT must be defined in modem.h | |
#define | UART_CTS_PORT |
#define | UART_CTS_PIN |
#define | UART_CTS_DDR |
#define | UART_CTS_SIGNAL |
#define | UART_CTS_BIT |
UART0 Half Duplex Control | |
UART0_HDX_BIT must be defined in modem.h | |
#define | UART_HDX_PORT |
#define | UART_HDX_DDR |
#define | UART_HDX_BIT |
UART1 RTS Handshake Control | |
UART1_RTS_BIT must be defined in modem.h | |
#define | UART_RTS_PORT |
#define | UART_RTS_DDR |
#define | UART_RTS_BIT |
UART1 CTS Handshake Sense | |
UART1_CTS_BIT must be defined in modem.h | |
#define | UART_CTS_PORT |
#define | UART_CTS_PIN |
#define | UART_CTS_DDR |
#define | UART_CTS_SIGNAL |
#define | UART_CTS_BIT |
UART1 Half Duplex Control | |
UART1_HDX_BIT must be defined in modem.h | |
#define | UART_HDX_PORT |
#define | UART_HDX_DDR |
#define | UART_HDX_BIT |
AVR USART0 Device | |
NUTDEVICE | devUsartAvr0 |
usartavr device 0 information structure. | |
AVR USART1 Device | |
NUTDEVICE | devUsartAvr1 |
usartavr device 1 information structure. | |
Defines | |
#define | ASCII_XON |
#define | ASCII_XOFF |
#define | XON_PENDING |
#define | XOFF_PENDING |
#define | XOFF_SENT |
#define | XOFF_RCVD |
|
CTS handshake sense bit. |
|
Data direction register of UART_CTS_BIT. |
|
Port input register of UART_CTS_BIT. |
|
Port output register of UART_CTS_BIT. |
|
Interrupt signal of UART_CTS_BIT. |
|
Half duplex control bit. |
|
Data direction register of UART_HDX_BIT. |
|
Port output register of UART_HDX_BIT. |
|
RTS handshake control bit. |
|
Data direction register of UART_RTS_BIT. |
|
Port output register of UART_RTS_BIT. |
|
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 } 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, 0, 0, 0, &dcb_usart1, UsartInit, UsartIOCtl, UsartRead, UsartWrite, UsartWrite_P, UsartOpen, UsartClose, UsartSize } 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. |