diff options
Diffstat (limited to 'nuttx/arch/hc')
-rwxr-xr-x | nuttx/arch/hc/src/common/up_initialize.c | 7 | ||||
-rwxr-xr-x | nuttx/arch/hc/src/common/up_internal.h | 12 |
2 files changed, 13 insertions, 6 deletions
diff --git a/nuttx/arch/hc/src/common/up_initialize.c b/nuttx/arch/hc/src/common/up_initialize.c index a1973e94a..5481ed7bc 100755 --- a/nuttx/arch/hc/src/common/up_initialize.c +++ b/nuttx/arch/hc/src/common/up_initialize.c @@ -43,6 +43,7 @@ #include <nuttx/arch.h> #include <nuttx/fs.h> +#include <nuttx/ramlog.h> #include "up_arch.h" #include "up_internal.h" @@ -158,6 +159,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/hc/src/common/up_internal.h b/nuttx/arch/hc/src/common/up_internal.h index 22677dd0f..93572e404 100755 --- a/nuttx/arch/hc/src/common/up_internal.h +++ b/nuttx/arch/hc/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 @@ -178,12 +184,6 @@ extern void lowconsole_init(void); # define lowconsole_init() #endif -#ifdef CONFIG_RAMLOG_CONSOLE -extern void ramlog_consoleinit(void); -#else -# define ramlog_consoleinit() -#endif - extern void up_lowputc(char ch); extern void up_puts(const char *str); extern void up_lowputs(const char *str); |