Add interface to enabled/disable debug output
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4386 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
d2e05ac96f
commit
c4dfdea4b3
@ -51,12 +51,6 @@
|
|||||||
* Private Definitions
|
* Private Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Determine which device to use as the system logging device */
|
|
||||||
|
|
||||||
#ifndef CONFIG_SYSLOG
|
|
||||||
# undef CONFIG_RAMLOG_SYSLOG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -104,7 +98,14 @@ void up_initialize(void)
|
|||||||
|
|
||||||
devnull_register(); /* Standard /dev/null */
|
devnull_register(); /* Standard /dev/null */
|
||||||
devzero_register(); /* Standard /dev/zero */
|
devzero_register(); /* Standard /dev/zero */
|
||||||
|
|
||||||
|
/* Register a console (or not) */
|
||||||
|
|
||||||
|
#if defined(USE_DEVCONSOLE)
|
||||||
up_devconsole(); /* Our private /dev/console */
|
up_devconsole(); /* Our private /dev/console */
|
||||||
|
#elif defined(CONFIG_RAMLOG_CONSOLE)
|
||||||
|
ramlog_consoleinit();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_RAMLOG_SYSLOG
|
#ifdef CONFIG_RAMLOG_SYSLOG
|
||||||
ramlog_sysloginit(); /* System logging device */
|
ramlog_sysloginit(); /* System logging device */
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* up_internal.h
|
* up_internal.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007, 2009, 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@ -63,6 +63,25 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Determine which (if any) console driver to use */
|
||||||
|
|
||||||
|
#if !defined(CONFIG_DEV_CONSOLE) || CONFIG_NFILE_DESCRIPTORS == 0
|
||||||
|
# undef USE_DEVCONSOLE
|
||||||
|
# undef CONFIG_RAMLOG_CONSOLE
|
||||||
|
#else
|
||||||
|
# if defined(CONFIG_RAMLOG_CONSOLE)
|
||||||
|
# undef USE_DEVCONSOLE
|
||||||
|
# else
|
||||||
|
# define USE_DEVCONSOLE 1
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Determine which device to use as the system logging device */
|
||||||
|
|
||||||
|
#ifndef CONFIG_SYSLOG
|
||||||
|
# undef CONFIG_RAMLOG_SYSLOG
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Context Switching Definitions ******************************************/
|
/* Context Switching Definitions ******************************************/
|
||||||
/* Storage order: %ebx, $esi, %edi, %ebp, sp, and return PC */
|
/* Storage order: %ebx, $esi, %edi, %ebp, sp, and return PC */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user