diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2010-05-07 02:32:56 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2010-05-07 02:32:56 +0000 |
commit | 44736f60b64db1057cc9c5fbd33232a0ff4b48f9 (patch) | |
tree | 83e0c2585e18e73612a7f7b017b484cb6668b0c8 /nuttx/arch/arm/src/lm3s/lm3s_lowputc.c | |
parent | 764d9d01b1fb7e9ec56f64f05f6b969256772ca3 (diff) |
Add LM3S6965 definition
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2654 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_lowputc.c')
-rw-r--r-- | nuttx/arch/arm/src/lm3s/lm3s_lowputc.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_lowputc.c b/nuttx/arch/arm/src/lm3s/lm3s_lowputc.c index 70d37b0c02..81e312cf14 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_lowputc.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_lowputc.c @@ -1,7 +1,7 @@ /************************************************************************** * arch/arm/src/lm3s/lm3s_lowputc.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -54,17 +54,37 @@ /* Configuration **********************************************************/ +#if LM3S_NUARTS < 2 +# undef CONFIG_UART1_DISABLE +# undef CONFIG_UART1_SERIAL_CONSOLE +# define CONFIG_UART1_DISABLE 1 +#endif + +#if LM3S_NUARTS < 3 +# undef CONFIG_UART2_DISABLE +# undef CONFIG_UART2_SERIAL_CONSOLE +# define CONFIG_UART2_DISABLE 1 +#endif + /* Is there a serial console? */ #if defined(CONFIG_UART0_SERIAL_CONSOLE) && !defined(CONFIG_UART0_DISABLE) # undef CONFIG_UART1_SERIAL_CONSOLE +# undef CONFIG_UART2_SERIAL_CONSOLE # define HAVE_CONSOLE 1 #elif defined(CONFIG_UART1_SERIAL_CONSOLE) && !defined(CONFIG_UART1_DISABLE) # undef CONFIG_UART0_SERIAL_CONSOLE +# undef CONFIG_UART2_SERIAL_CONSOLE +# define HAVE_CONSOLE 1 +#elif defined(CONFIG_UART2_SERIAL_CONSOLE) && !defined(CONFIG_UART2_DISABLE) +# undef CONFIG_UART0_SERIAL_CONSOLE +# undef CONFIG_UART1_SERIAL_CONSOLE # define HAVE_CONSOLE 1 #else +# warning "No valid CONFIG_UARTn_SERIAL_CONSOLE Setting" # undef CONFIG_UART0_SERIAL_CONSOLE # undef CONFIG_UART1_SERIAL_CONSOLE +# undef CONFIG_UART2_SERIAL_CONSOLE # undef HAVE_CONSOLE #endif @@ -82,6 +102,12 @@ # define LM3S_CONSOLE_BITS CONFIG_UART1_BITS # define LM3S_CONSOLE_PARITY CONFIG_UART1_PARITY # define LM3S_CONSOLE_2STOP CONFIG_UART1_2STOP +#elif defined(CONFIG_UART2_SERIAL_CONSOLE) +# define LM3S_CONSOLE_BASE LM3S_UART2_BASE +# define LM3S_CONSOLE_BAUD CONFIG_UART2_BAUD +# define LM3S_CONSOLE_BITS CONFIG_UART2_BITS +# define LM3S_CONSOLE_PARITY CONFIG_UART2_PARITY +# define LM3S_CONSOLE_2STOP CONFIG_UART2_2STOP #else # error "No CONFIG_UARTn_SERIAL_CONSOLE Setting" #endif |