diff options
Diffstat (limited to 'nuttx/arch/arm')
-rw-r--r-- | nuttx/arch/arm/src/common/up_initialize.c | 8 | ||||
-rw-r--r-- | nuttx/arch/arm/src/common/up_internal.h | 14 |
2 files changed, 14 insertions, 8 deletions
diff --git a/nuttx/arch/arm/src/common/up_initialize.c b/nuttx/arch/arm/src/common/up_initialize.c index 9d7ba0f19..130f0721f 100644 --- a/nuttx/arch/arm/src/common/up_initialize.c +++ b/nuttx/arch/arm/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" @@ -159,6 +161,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(); diff --git a/nuttx/arch/arm/src/common/up_internal.h b/nuttx/arch/arm/src/common/up_internal.h index 6f98ac04d..8ade816c7 100644 --- a/nuttx/arch/arm/src/common/up_internal.h +++ b/nuttx/arch/arm/src/common/up_internal.h @@ -81,6 +81,12 @@ # endif #endig +/* Determine which device to use as the system loggin device */ + +#ifndef CONFIG_SYSLOG +# undef CONFIG_RAMLOG_SYSLOG +#endif + /* Check if an interrupt stack size is configured */ #ifndef CONFIG_ARCH_INTERRUPTSTACK @@ -297,14 +303,6 @@ extern void lowconsole_init(void); # define lowconsole_init() #endif -/* Defined in drivers/ramlog.c */ - -#ifdef CONFIG_RAMLOG_CONSOLE -extern void ramlog_consoleinit(void); -#else -# define ramlog_consoleinit() -#endif - /* DMA **********************************************************************/ #ifdef CONFIG_ARCH_DMA |