From 47db06503460f6cf49265be11628b883966d10d9 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Wed, 6 Jun 2012 15:25:57 +0100 Subject: [PATCH] Bugfixed the cc253x UART0 init (Thanks, Deng Jian) The flush instruction was resetting the stop bit level to 'low' --- cpu/cc253x/dev/uart0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/cc253x/dev/uart0.c b/cpu/cc253x/dev/uart0.c index 85d0402c7..0e8ddb1d1 100644 --- a/cpu/cc253x/dev/uart0.c +++ b/cpu/cc253x/dev/uart0.c @@ -56,7 +56,7 @@ uart0_init() #endif U0CSR = UCSR_MODE; /* UART mode */ - U0UCR = 0x80; /* Flush */ + U0UCR |= 0x80; /* Flush */ UART0_RX_EN(); UART0_RX_INT(1);