git.droids-corp.org
/
aversive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uart: fix compilation on recent avr-gcc
[aversive.git]
/
modules
/
comm
/
uart
/
uart_setconf.c
diff --git
a/modules/comm/uart/uart_setconf.c
b/modules/comm/uart/uart_setconf.c
index
7088887
..
91c12af
100644
(file)
--- a/
modules/comm/uart/uart_setconf.c
+++ b/
modules/comm/uart/uart_setconf.c
@@
-98,10
+98,10
@@
static int8_t uart_set_nbits_parity(int8_t num, struct uart_config * u)
{
/* number of bit in the frame */
if (u->nbits == 8)
{
/* number of bit in the frame */
if (u->nbits == 8)
- *uart_regs[num].ucsrb &= ~(1 <<
CHR9
);
+ *uart_regs[num].ucsrb &= ~(1 <<
UCSZ2
);
#ifdef CONFIG_MODULE_UART_9BITS
else if (u->nbits == 9)
#ifdef CONFIG_MODULE_UART_9BITS
else if (u->nbits == 9)
- *uart_regs[num].ucsrb |= (1 <<
CHR9
);
+ *uart_regs[num].ucsrb |= (1 <<
UCSZ2
);
#endif
else
return ENOTSUP;
#endif
else
return ENOTSUP;