diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 18:18:58 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 18:18:58 +0000 |
commit | ea4461bfe4f667a624055c6a061aaef49e33cace (patch) | |
tree | 3163f7626e4818bb90825605c07d05135819d26f /nuttx/arch/arm/src/lpc17xx/lpc17_serial.c | |
parent | 77f58a73a4a41d6f26e296a7caab88c490aa0c95 (diff) | |
download | px4-nuttx-ea4461bfe4f667a624055c6a061aaef49e33cace.tar.gz px4-nuttx-ea4461bfe4f667a624055c6a061aaef49e33cace.tar.bz2 px4-nuttx-ea4461bfe4f667a624055c6a061aaef49e33cace.zip |
Cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3499 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_serial.c')
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/lpc17_serial.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c b/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c index f5c20aca6..146e985eb 100755 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/arm/src/lpc17xx/lpc17_serial.c * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2010-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -595,7 +595,7 @@ static inline uint32_t lpc17_uartcclkdiv(uint32_t baud) } /************************************************************************************ - * Name: lpc17_uart0config, uart1config, uart2config, nad uart3config + * Name: lpc17_uart0config, uart1config, uart2config, and uart3config * * Descrption: * Configure the UART. UART0/1/2/3 peripherals are configured using the following @@ -1283,6 +1283,7 @@ void up_earlyserialinit(void) #endif up_disableuartint(&g_uart0priv, NULL); #endif + #ifdef CONFIG_LPC17_UART1 g_uart1priv.cclkdiv = lpc17_uartcclkdiv(CONFIG_UART1_BAUD); #ifndef CONFIG_UART1_SERIAL_CONSOLE @@ -1290,6 +1291,7 @@ void up_earlyserialinit(void) #endif up_disableuartint(&g_uart1priv, NULL); #endif + #ifdef CONFIG_LPC17_UART2 g_uart2priv.cclkdiv = lpc17_uartcclkdiv(CONFIG_UART2_BAUD); #ifndef CONFIG_UART2_SERIAL_CONSOLE @@ -1297,6 +1299,7 @@ void up_earlyserialinit(void) #endif up_disableuartint(&g_uart2priv, NULL); #endif + #ifdef CONFIG_LPC17_UART3 g_uart3priv.cclkdiv = lpc17_uartcclkdiv(CONFIG_UART3_BAUD); #ifndef CONFIG_UART3_SERIAL_CONSOLE |