Fix typos.

This commit is contained in:
jeditekunum 2015-01-26 13:55:26 -06:00
parent b050703849
commit 262ae0eb76
2 changed files with 3 additions and 6 deletions

View File

@ -48,7 +48,7 @@
/* USARTs ***************************************************************************/
#undef HAVE_USART_DEVICE
#if defined(CONFIG_AVR_USART0) || defined(CONFIG_AVR_USART0)
#if defined(CONFIG_AVR_USART0) || defined(CONFIG_AVR_USART1)
# define HAVE_USART_DEVICE 1
#endif

View File

@ -897,7 +897,7 @@ void up_earlyserialinit(void)
{
/* Disable all USARTS */
#ifdef CONFIG_AVR_USART1
#ifdef CONFIG_AVR_USART0
usart0_disableusartint(NULL);
#endif
#ifdef CONFIG_AVR_USART1
@ -949,9 +949,6 @@ void up_serialinit(void)
*
****************************************************************************/
#ifdef HAVE_SERIAL_CONSOLE
#endif
int up_putc(int ch)
{
#ifdef HAVE_SERIAL_CONSOLE
@ -960,7 +957,7 @@ int up_putc(int ch)
#if defined(CONFIG_USART0_SERIAL_CONSOLE)
usart0_disableusartint(&imr);
#else
usart1_cdisableusartint(&imr);
usart1_disableusartint(&imr);
#endif
/* Check for LF */