From 62c4883af719f5bacd197257387a0071c625e469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 11 Oct 2015 14:13:02 +0200 Subject: Replace usart initialization parameters with configuration Baudrate and other configurations are now defined in compile time by preprocessor flags. This simplifies output code. --- src/usart_baundrate_helper.h | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/usart_baundrate_helper.h (limited to 'src/usart_baundrate_helper.h') diff --git a/src/usart_baundrate_helper.h b/src/usart_baundrate_helper.h deleted file mode 100644 index 0271bdd..0000000 --- a/src/usart_baundrate_helper.h +++ /dev/null @@ -1,12 +0,0 @@ -#include -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 -- cgit v1.2.3