summaryrefslogtreecommitdiff
path: root/nuttx/arch/avr/src/atmega/atmega_lowconsole.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-15 16:09:23 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-15 16:09:23 +0000
commit1e5b09b3aef15551da9717ef5b5f5a36fb7e11bf (patch)
tree1bb5d252da85c4c2ceab262322217ec58803b854 /nuttx/arch/avr/src/atmega/atmega_lowconsole.c
parent84b10fdbd5fabcd3c84814260d85ba983b582f36 (diff)
downloadpx4-nuttx-1e5b09b3aef15551da9717ef5b5f5a36fb7e11bf.tar.gz
px4-nuttx-1e5b09b3aef15551da9717ef5b5f5a36fb7e11bf.tar.bz2
px4-nuttx-1e5b09b3aef15551da9717ef5b5f5a36fb7e11bf.zip
Fix AVR parity setup
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3703 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/avr/src/atmega/atmega_lowconsole.c')
-rw-r--r--nuttx/arch/avr/src/atmega/atmega_lowconsole.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/avr/src/atmega/atmega_lowconsole.c b/nuttx/arch/avr/src/atmega/atmega_lowconsole.c
index bd49a0491..c1fda6244 100644
--- a/nuttx/arch/avr/src/atmega/atmega_lowconsole.c
+++ b/nuttx/arch/avr/src/atmega/atmega_lowconsole.c
@@ -280,7 +280,7 @@ void usart0_configure(void)
#if CONFIG_USART0_PARITY == 1
ucsr0c |= ((1 << UPM01) | (1 << UPM00)); /* Odd parity */
-#else
+#elif CONFIG_USART0_PARITY == 2
ucsr0c |= (1 << UPM00); /* Even parity */
#endif
@@ -357,7 +357,7 @@ void usart1_configure(void)
#if CONFIG_USART1_PARITY == 1
ucsr1c |= ((1 << UPM11) | (1 << UPM10)); /* Odd parity */
-#else
+#elif CONFIG_USART1_PARITY == 2
ucsr1c |= (1 << UPM11); /* Even parity */
#endif