Couple of fixes for the latest STM32 additions / modifications. These are simple fixes dealing with conditional compile based on CONFIG items not being set. From Ken Pettit

This commit is contained in:
Gregory Nutt 2014-05-09 06:41:01 -06:00
parent e18844de32
commit 898e59f112
2 changed files with 2 additions and 2 deletions

View File

@ -572,9 +572,11 @@ void stm32_lowsetup(void)
uint32_t cr; uint32_t cr;
#endif #endif
#if defined(CONFIG_HAVE_CONSOLE)
/* Enable USART APB1/2 clock */ /* Enable USART APB1/2 clock */
modifyreg32(STM32_CONSOLE_APBREG, 0, STM32_CONSOLE_APBEN); modifyreg32(STM32_CONSOLE_APBREG, 0, STM32_CONSOLE_APBEN);
#endif
/* Enable the console USART and configure GPIO pins needed for rx/tx. /* Enable the console USART and configure GPIO pins needed for rx/tx.
* *

View File

@ -390,8 +390,6 @@ static const struct uart_ops_s g_uart_ops =
.rxavailable = up_rxavailable, .rxavailable = up_rxavailable,
#ifdef CONFIG_SERIAL_IFLOWCONTROL #ifdef CONFIG_SERIAL_IFLOWCONTROL
.rxflowcontrol = up_rxflowcontrol, .rxflowcontrol = up_rxflowcontrol,
#else
.rxflowcontrol = NULL,
#endif #endif
.send = up_send, .send = up_send,
.txint = up_txint, .txint = up_txint,