From ca6cfe55548a7f04a049f34ed59812c720c372b4 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 12 Jun 2012 18:33:10 +0200 Subject: digital/avr/modules/uart: fix cpp warning --- digital/avr/modules/uart/uart.avr.c | 6 +++--- 1 file 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; -- cgit v1.2.3