Use this driver like the hardware uart of the nutos:
FILE *uarts; long sbaud = 2400; NutRegisterDevice(&S_UART, 0, 0); uarts = fopen(S_UART.dev_name, "r+"); _ioctl(_fileno(uarts), UART_SETSPEED, &sbaud);
#include <sys/device.h>
#include <dev/uart.h>
#include <dev/usart.h>
Defines | |
#define | S_UART devUsartAvrS |
Variables | |
NUTDEVICE | devUsartAvrS |