summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/common/up_internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-11 03:50:52 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-11 03:50:52 +0000
commit4a62de545bf87610c2415218e144ddef4dd0e75c (patch)
tree6c5b47ab79d40800d497f8a470aad5aa569ff9d6 /nuttx/arch/z80/src/common/up_internal.h
parent24af177eb1a3e7036f8a3ee5342970ddeb151124 (diff)
downloadnuttx-4a62de545bf87610c2415218e144ddef4dd0e75c.tar.gz
nuttx-4a62de545bf87610c2415218e144ddef4dd0e75c.tar.bz2
nuttx-4a62de545bf87610c2415218e144ddef4dd0e75c.zip
Add logic so that a RAM log can be used in place of a console device
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4380 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/src/common/up_internal.h')
-rw-r--r--nuttx/arch/z80/src/common/up_internal.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/nuttx/arch/z80/src/common/up_internal.h b/nuttx/arch/z80/src/common/up_internal.h
index 2e5afb2e3..919a74353 100644
--- a/nuttx/arch/z80/src/common/up_internal.h
+++ b/nuttx/arch/z80/src/common/up_internal.h
@@ -69,15 +69,15 @@
/* Determine which (if any) console driver to use */
#if CONFIG_NFILE_DESCRIPTORS == 0 || defined(CONFIG_DEV_LOWCONSOLE)
-# undef CONFIG_USE_SERIALDRIVER
+# undef USE_SERIALDRIVER
# ifdef CONFIG_HAVE_LOWUARTINIT
-# define CONFIG_USE_LOWUARTINIT 1
+# define USE_LOWUARTINIT 1
# else
-# undef CONFIG_USE_LOWUARTINIT
+# undef USE_LOWUARTINIT
# endif
#elif defined(CONFIG_DEV_CONSOLE) && CONFIG_NFILE_DESCRIPTORS > 0
-# define CONFIG_USE_SERIALDRIVER 1
-# undef CONFIG_USE_LOWUARTINIT
+# define USE_SERIALDRIVER 1
+# undef USE_LOWUARTINIT
#endif
/****************************************************************************
@@ -105,7 +105,7 @@ extern "C" {
EXTERN void up_irqinitialize(void);
EXTERN int up_timerisr(int irq, FAR chipreg_t *regs);
-#ifdef CONFIG_USE_LOWUARTINIT
+#ifdef USE_LOWUARTINIT
EXTERN void up_lowuartinit(void);
#endif
@@ -125,7 +125,7 @@ void up_addregion(void);
/* Defined in up_serial.c */
-#ifdef CONFIG_USE_SERIALDRIVER
+#ifdef USE_SERIALDRIVER
EXTERN void up_serialinit(void);
#else
# define up_serialinit()
@@ -139,6 +139,14 @@ 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
+
/* Low level string output */
extern void up_puts(const char *str);