summaryrefslogtreecommitdiff
path: root/nuttx/arch/avr
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-11 14:20:40 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-11 14:20:40 +0000
commit75e67f05d4b97efc32d95b478ec1c1f959992a4b (patch)
tree8cf471347f767130a152b249bafd7de1a6017757 /nuttx/arch/avr
parent4a62de545bf87610c2415218e144ddef4dd0e75c (diff)
downloadpx4-nuttx-75e67f05d4b97efc32d95b478ec1c1f959992a4b.tar.gz
px4-nuttx-75e67f05d4b97efc32d95b478ec1c1f959992a4b.tar.bz2
px4-nuttx-75e67f05d4b97efc32d95b478ec1c1f959992a4b.zip
Add logic to re-direct debug output to a sysloggin device
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4381 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/avr')
-rw-r--r--nuttx/arch/avr/src/at32uc3/at32uc3_config.h6
-rw-r--r--nuttx/arch/avr/src/at90usb/at90usb_config.h6
-rw-r--r--nuttx/arch/avr/src/atmega/atmega_config.h6
-rw-r--r--nuttx/arch/avr/src/common/up_initialize.c14
-rw-r--r--nuttx/arch/avr/src/common/up_internal.h8
5 files changed, 32 insertions, 8 deletions
diff --git a/nuttx/arch/avr/src/at32uc3/at32uc3_config.h b/nuttx/arch/avr/src/at32uc3/at32uc3_config.h
index 72536083a..b42520531 100644
--- a/nuttx/arch/avr/src/at32uc3/at32uc3_config.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_config.h
@@ -168,6 +168,12 @@
# endif
#endig
+/* Determine which device to use as the system loggin device */
+
+#ifndef CONFIG_SYSLOG
+# undef CONFIG_RAMLOG_SYSLOG
+#endif
+
/* If GPIO IRQ support is defined, then a set of GPIOs must all be included */
#if CONFIG_AVR32_GPIOIRQSETA == 0 && CONFIG_AVR32_GPIOIRQSETB == 0
diff --git a/nuttx/arch/avr/src/at90usb/at90usb_config.h b/nuttx/arch/avr/src/at90usb/at90usb_config.h
index e6d2fb89e..41ad9957c 100644
--- a/nuttx/arch/avr/src/at90usb/at90usb_config.h
+++ b/nuttx/arch/avr/src/at90usb/at90usb_config.h
@@ -87,6 +87,12 @@
# endif
#endig
+/* Determine which device to use as the system loggin device */
+
+#ifndef CONFIG_SYSLOG
+# undef CONFIG_RAMLOG_SYSLOG
+#endif
+
/************************************************************************************
* Public Types
************************************************************************************/
diff --git a/nuttx/arch/avr/src/atmega/atmega_config.h b/nuttx/arch/avr/src/atmega/atmega_config.h
index e0a7968cc..a168a2e47 100644
--- a/nuttx/arch/avr/src/atmega/atmega_config.h
+++ b/nuttx/arch/avr/src/atmega/atmega_config.h
@@ -92,6 +92,12 @@
# endif
#endig
+/* Determine which device to use as the system loggin device */
+
+#ifndef CONFIG_SYSLOG
+# undef CONFIG_RAMLOG_SYSLOG
+#endif
+
/************************************************************************************
* Public Types
************************************************************************************/
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();
diff --git a/nuttx/arch/avr/src/common/up_internal.h b/nuttx/arch/avr/src/common/up_internal.h
index bc62be720..e65b5627d 100644
--- a/nuttx/arch/avr/src/common/up_internal.h
+++ b/nuttx/arch/avr/src/common/up_internal.h
@@ -172,14 +172,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
-
/* Defined in chip/xxx_timerisr.c */
extern void up_timerinit(void);