diff options
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 ************************************************************************************/ |