diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-06 02:42:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-06 02:42:59 +0000 |
commit | bdd764863020c9a7730ecf7a78d8d43247f6d0ce (patch) | |
tree | 45e817b95cf8a28df5e925ebab2d050854c62e8b /nuttx/arch/avr/src/common/up_initialize.c | |
parent | dafb91b46c651eba17a63457a81917b53217c2b7 (diff) | |
download | px4-nuttx-bdd764863020c9a7730ecf7a78d8d43247f6d0ce.tar.gz px4-nuttx-bdd764863020c9a7730ecf7a78d8d43247f6d0ce.tar.bz2 px4-nuttx-bdd764863020c9a7730ecf7a78d8d43247f6d0ce.zip |
Progress debugging serial driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3078 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/avr/src/common/up_initialize.c')
-rw-r--r-- | nuttx/arch/avr/src/common/up_initialize.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nuttx/arch/avr/src/common/up_initialize.c b/nuttx/arch/avr/src/common/up_initialize.c index fde474ec6..abbff8532 100644 --- a/nuttx/arch/avr/src/common/up_initialize.c +++ b/nuttx/arch/avr/src/common/up_initialize.c @@ -51,6 +51,19 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ +/* Determine which (if any) console driver to use. This will probably cause + * up_serialinit to be incorrectly called if there is no USART configured to + * be an RS-232 device (see as an example arch/avr/src/at32uc23/at32uc3_config.h) + * This will probably have to be revisited someday. + */ + +#if CONFIG_NFILE_DESCRIPTORS == 0 || defined(CONFIG_DEV_LOWCONSOLE) +# undef CONFIG_USE_SERIALDRIVER +# undef CONFIG_USE_EARLYSERIALINIT +#elif defined(CONFIG_DEV_CONSOLE) && CONFIG_NFILE_DESCRIPTORS > 0 +# define CONFIG_USE_SERIALDRIVER 1 +# define CONFIG_USE_EARLYSERIALINIT 1 +#endif /**************************************************************************** * Private Types |