diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-11 16:45:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-11 16:45:31 +0000 |
commit | 63866f8da09e268ecb79c346e51355a74f1fd3df (patch) | |
tree | 299cc48c9bcfcd1a74dc0117ebe7f5b33b2e2c08 /nuttx/arch/avr/src/atmega/atmega_config.h | |
parent | c0cf3ce4b3306a6ea08d579f84247900b7e9611e (diff) | |
download | px4-nuttx-63866f8da09e268ecb79c346e51355a74f1fd3df.tar.gz px4-nuttx-63866f8da09e268ecb79c346e51355a74f1fd3df.tar.bz2 px4-nuttx-63866f8da09e268ecb79c346e51355a74f1fd3df.zip |
Finsh AVR serial drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3696 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/avr/src/atmega/atmega_config.h')
-rw-r--r-- | nuttx/arch/avr/src/atmega/atmega_config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nuttx/arch/avr/src/atmega/atmega_config.h b/nuttx/arch/avr/src/atmega/atmega_config.h index 866680f0e..bf314ad49 100644 --- a/nuttx/arch/avr/src/atmega/atmega_config.h +++ b/nuttx/arch/avr/src/atmega/atmega_config.h @@ -68,6 +68,16 @@ # undef HAVE_SERIAL_CONSOLE #endif +/* Determine which (if any) console driver to use */ + +#if CONFIG_NFILE_DESCRIPTORS == 0 || defined(CONFIG_DEV_LOWCONSOLE) || !defined(HAVE_USART_DEVICE) +# 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 + /************************************************************************************ * Public Types ************************************************************************************/ |