aboutsummaryrefslogtreecommitdiff
path: root/src/usart_baundrate_helper.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-10-11 14:13:02 +0200
committerKarel Kočí <cynerd@email.cz>2015-10-11 14:16:52 +0200
commit62c4883af719f5bacd197257387a0071c625e469 (patch)
treec8f37c013c8263f818375d5b45606c10584a7646 /src/usart_baundrate_helper.h
parent861ed124caf5a403748c948b88afa4ef89cc1787 (diff)
downloadavr-ioe-62c4883af719f5bacd197257387a0071c625e469.tar.gz
avr-ioe-62c4883af719f5bacd197257387a0071c625e469.tar.bz2
avr-ioe-62c4883af719f5bacd197257387a0071c625e469.zip
Replace usart initialization parameters with configuration
Baudrate and other configurations are now defined in compile time by preprocessor flags. This simplifies output code.
Diffstat (limited to 'src/usart_baundrate_helper.h')
-rw-r--r--src/usart_baundrate_helper.h12
1 files changed, 0 insertions, 12 deletions
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 <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