summaryrefslogtreecommitdiff
path: root/digital
diff options
context:
space:
mode:
authorNicolas Schodet2012-06-12 18:33:10 +0200
committerNicolas Schodet2012-06-14 21:00:50 +0200
commitca6cfe55548a7f04a049f34ed59812c720c372b4 (patch)
tree03ded2efddac20b1e4cf83cfbaf3a81331f32120 /digital
parent241bf99db678a85ab18a21b204fc4a422e8db2dc (diff)
digital/avr/modules/uart: fix cpp warning
Diffstat (limited to 'digital')
-rw-r--r--digital/avr/modules/uart/uart.avr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/digital/avr/modules/uart/uart.avr.c b/digital/avr/modules/uart/uart.avr.c
index 0b0ab107..836b19aa 100644
--- a/digital/avr/modules/uart/uart.avr.c
+++ b/digital/avr/modules/uart/uart.avr.c
@@ -190,9 +190,9 @@
/* Stop bits. */
#if AC_UART (STOP_BITS) == 1
-#define STOP_BITS 0
+#define STOP 0
#elif AC_UART (STOP_BITS) == 2
-#define STOP_BITS _BV (USBS)
+#define STOP _BV (USBS)
#else
#error "uart: bad stop bits value"
#endif
@@ -253,7 +253,7 @@ uart_init (void)
UBRRL = UBRR_VAL & 0xff;
UCSRA = 0;
/* Set format and enable uart. */
- UCSRC = SELECTOR | PARITY | STOP_BITS | CHAR_SIZE;
+ UCSRC = SELECTOR | PARITY | STOP | CHAR_SIZE;
UCSRB = RECV_IE | _BV (RXEN) | _BV (TXEN);
#if RECV_MODE == RING
uart_recv_head = 0;