Add stm32/nsh2 config; Add option to use any TTY for NSH console

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3743 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-07-04 19:52:43 +00:00
parent 84cdbc3fef
commit c4ce380602
2 changed files with 3 additions and 3 deletions

View File

@ -291,7 +291,7 @@ void stm32_lowsetup(void)
*/
#ifdef CONFIG_STM32_USART2_REMAP
mapr |= ~AFIO_MAPR_USART2_REMAP;
mapr |= AFIO_MAPR_USART2_REMAP;
#else
mapr &= ~AFIO_MAPR_USART2_REMAP;
#endif

View File

@ -1,7 +1,7 @@
/****************************************************************************
* arch/arm/src/stm32/stm32_serial.c
*
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
* Copyright (C) 2009-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@ -659,7 +659,7 @@ static int up_interrupt(int irq, void *context)
/* Get the masked USART status and clear the pending interrupts. */
priv->sr = up_serialin(priv, STM32_USART_SR_OFFSET);
priv->sr = up_serialin(priv, STM32_USART_SR_OFFSET);
/* USART interrupts:
*