blob: 0271bddd5b7923248df74ff0d84be4582d848c93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <util/setbaud.h>
UBRR0H = UBRRH_VALUE;
UBRR0L = UBRRL_VALUE;
#if USE_2X
UCSR0A |= _BV(U2X0);
#else
UCSR0A &= ~_BV(U2X0);
#endif
#undef BAUD
#undef UBRRH_VALUE
#undef UBRRL_VALUE
#undef USE_2X
|