diff options
Diffstat (limited to 'nuttx/arch/avr/src/common/up_initialize.c')
-rw-r--r-- | nuttx/arch/avr/src/common/up_initialize.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nuttx/arch/avr/src/common/up_initialize.c b/nuttx/arch/avr/src/common/up_initialize.c index eed1b4135..3bcbc0dc4 100644 --- a/nuttx/arch/avr/src/common/up_initialize.c +++ b/nuttx/arch/avr/src/common/up_initialize.c @@ -43,6 +43,8 @@ #include <nuttx/arch.h> #include <nuttx/fs.h> +#include <nuttx/ramlog.h> + #include <arch/board/board.h> #include "up_arch.h" @@ -76,6 +78,12 @@ # endif #endig +/* Determine which device to use as the system loggin device */ + +#ifndef CONFIG_SYSLOG +# undef CONFIG_RAMLOG_SYSLOG +#endif + /**************************************************************************** * Private Types ****************************************************************************/ @@ -183,6 +191,12 @@ void up_initialize(void) ramlog_consoleinit(); #endif + /* Initialize the system logging device */ + +#ifdef CONFIG_RAMLOG_SYSLOG + ramlog_sysloginit(); +#endif + /* Initialize the netwok */ up_netinitialize(); |