summaryrefslogtreecommitdiff
path: root/nuttx/arch/z16
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z16')
-rw-r--r--nuttx/arch/z16/src/common/up_initialize.c8
-rw-r--r--nuttx/arch/z16/src/common/up_internal.h14
2 files changed, 15 insertions, 7 deletions
diff --git a/nuttx/arch/z16/src/common/up_initialize.c b/nuttx/arch/z16/src/common/up_initialize.c
index ab653f368..165f0ead3 100644
--- a/nuttx/arch/z16/src/common/up_initialize.c
+++ b/nuttx/arch/z16/src/common/up_initialize.c
@@ -44,6 +44,8 @@
#include <nuttx/arch.h>
#include <nuttx/fs.h>
#include <nuttx/mm.h>
+#include <nuttx/ramlog.h>
+
#include <arch/board/board.h>
#include "up_internal.h"
@@ -174,6 +176,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/z16/src/common/up_internal.h b/nuttx/arch/z16/src/common/up_internal.h
index e0c8ffc61..7d0aaaec8 100644
--- a/nuttx/arch/z16/src/common/up_internal.h
+++ b/nuttx/arch/z16/src/common/up_internal.h
@@ -70,7 +70,13 @@
# define USE_SERIALDRIVER 1
# define USE_EARLYSERIALINIT 1
#endif
-
+
+/* Determine which device to use as the system loggin device */
+
+#ifndef CONFIG_SYSLOG
+# undef CONFIG_RAMLOG_SYSLOG
+#endif
+
/* Macros for portability */
#define IN_INTERRUPT (current_regs != NULL)
@@ -140,12 +146,6 @@ extern void up_serialinit(void);
extern void lowconsole_init(void);
#endif
-/* Defined in drivers/ramlog.c */
-
-#ifdef CONFIG_RAMLOG_CONSOLE
-extern void ramlog_consoleinit(void);
-#endif
-
/* Defined in up_timerisr.c */
extern void up_timerinit(void);