megaAVR STK600 AVR libc setbaud Example
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | BAUD 9600 |
Set the desired baud rate value. More... | |
#define | BAUD_TOL 2 |
set the baud rate tolerance to 2% More... | |
#define | UART_PORT_DDR DDRD |
define what PORT the UART0 is connected to More... | |
#define | UART_RX_PIN PIN0 |
define what pins are used for UART0 TX and RX More... | |
#define | UART_TX_PIN PIN1 |
#define BAUD 9600 |
Set the desired baud rate value.
set the desired baudrate, the define is used by the util/setbaud.h to calculate the register values.
#define BAUD_TOL 2 |
set the baud rate tolerance to 2%
#define UART_PORT_DDR DDRD |
define what PORT the UART0 is connected to
Referenced by uart_init().
#define UART_RX_PIN PIN0 |
define what pins are used for UART0 TX and RX
Referenced by uart_init().
#define UART_TX_PIN PIN1 |
Referenced by uart_init().