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
This commit is contained in:
patacongo
2012-02-11 03:50:52 +00:00
parent 4176202014
commit 93cf0f6ed5
14 changed files with 34 additions and 31 deletions
+3
View File
@@ -303,6 +303,9 @@ defconfig -- This is a configuration file similar to the Linux
CONFIG_GREGORIAN_TIME in order to use Julian time. CONFIG_GREGORIAN_TIME in order to use Julian time.
CONFIG_DEV_CONSOLE - Set if architecture-specific logic CONFIG_DEV_CONSOLE - Set if architecture-specific logic
provides /dev/console. Enables stdout, stderr, stdin. provides /dev/console. Enables stdout, stderr, stdin.
This implies the "normal" serial driver provides the
console unless another console device is specified
(See CONFIG_DEV_LOWCONSOLE).
CONFIG_MUTEX_TYPES - Set to enable support for recursive and CONFIG_MUTEX_TYPES - Set to enable support for recursive and
errorcheck mutexes. Enables pthread_mutexattr_settype(). errorcheck mutexes. Enables pthread_mutexattr_settype().
CONFIG_PRIORITY_INHERITANCE - Set to enable support for CONFIG_PRIORITY_INHERITANCE - Set to enable support for
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# configs/demo9s12ne64/ostest/defconfig # configs/demo9s12ne64/ostest/defconfig
# #
# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. # Copyright (C) 2009-2010, 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
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# configs/ne64badge/ostest/defconfig # configs/ne64badge/ostest/defconfig
# #
# Copyright (C) 2011 Gregory Nutt. All rights reserved. # Copyright (C) 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
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# configs/ntosd-dm320/uip/defconfig # configs/ntosd-dm320/uip/defconfig
# #
# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved. # Copyright (C) 2007-2010, 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
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# configs/pjrc-8051/defconfig # configs/pjrc-8051/defconfig
# #
# Copyright (C) 2007-2011 Gregory Nutt. All rights reserved. # Copyright (C) 2007-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
+4 -4
View File
@@ -1,8 +1,8 @@
/************************************************************************************ /************************************************************************************
* configs/scp16c26/src/up_lcd.c * configs/scp16c26/src/up_lcd.c
* *
* Copyright (C) 2009 Gregory Nutt. All rights reserved. * Copyright (C) 2009, 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
@@ -84,7 +84,7 @@
* *
************************************************************************************/ ************************************************************************************/
#ifdef CONFIG_USE_EARLYSERIALINIT #ifdef USE_EARLYSERIALINIT
# warning "You probably need to define CONFIG_ARCH_LOWCONSOLE" # warning "You probably need to define CONFIG_ARCH_LOWCONSOLE"
void up_earlyconsoleinit(void) void up_earlyconsoleinit(void)
{ {
@@ -101,7 +101,7 @@ void up_earlyconsoleinit(void)
* *
************************************************************************************/ ************************************************************************************/
#if CONFIG_USE_SERIALDRIVER #if USE_SERIALDRIVER
# warning "You probably need to define CONFIG_ARCH_LOWCONSOLE" # warning "You probably need to define CONFIG_ARCH_LOWCONSOLE"
void up_consoleinit(void) void up_consoleinit(void)
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# sim/xtrs/nsh/defconfig # sim/xtrs/nsh/defconfig
# #
# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved. # Copyright (C) 2007-2010, 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
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# configs/xtrs/ostest/defconfig # configs/xtrs/ostest/defconfig
# #
# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved. # Copyright (C) 2008-2010, 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
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# configs/xtrs/pashello/defconfig # configs/xtrs/pashello/defconfig
# #
# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved. # Copyright (C) 2008-2010, 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
+3 -3
View File
@@ -6,7 +6,7 @@
* *
* This file is a part of NuttX and hence * This file is a part of NuttX and hence
* *
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. * Copyright (C) 2008-2009, 2012 Gregory Nutt. All rights reserved.
* *
* 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
@@ -60,7 +60,7 @@
#include "os_internal.h" #include "os_internal.h"
#include "up_internal.h" #include "up_internal.h"
#ifdef CONFIG_USE_SERIAL_DRIVER #ifdef USE_SERIAL_DRIVER
/**************************************************************************** /****************************************************************************
* Definitions * Definitions
@@ -393,7 +393,7 @@ void up_serialinit(void)
(void)uart_register("/dev/console", &g_uartport); (void)uart_register("/dev/console", &g_uartport);
(void)uart_register("/dev/ttyS0", &g_uartport); (void)uart_register("/dev/ttyS0", &g_uartport);
} }
#endif /* CONFIG_USE_SERIALDRIVER */ #endif /* USE_SERIALDRIVER */
/**************************************************************************** /****************************************************************************
* Name: up_putc * Name: up_putc
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# configs/z80sim/ostest/defconfig # configs/z80sim/ostest/defconfig
# #
# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved. # Copyright (C) 2007-2010, 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
+4 -4
View File
@@ -1,8 +1,8 @@
/**************************************************************************** /****************************************************************************
* board/z80_serial.c * board/z80_serial.c
* *
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 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
@@ -56,7 +56,7 @@
#include "os_internal.h" #include "os_internal.h"
#include "up_internal.h" #include "up_internal.h"
#ifdef CONFIG_USE_SERIALDRIVER #ifdef USE_SERIALDRIVER
/**************************************************************************** /****************************************************************************
* Definitions * Definitions
@@ -342,7 +342,7 @@ void up_serialinit(void)
(void)uart_register("/dev/console", &g_uartport); (void)uart_register("/dev/console", &g_uartport);
(void)uart_register("/dev/ttyS0", &g_uartport); (void)uart_register("/dev/ttyS0", &g_uartport);
} }
#endif /* CONFIG_USE_SERIALDRIVER */ #endif /* USE_SERIALDRIVER */
/**************************************************************************** /****************************************************************************
* Name: up_putc * Name: up_putc
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# configs/z8encore000zco/ostest/defconfig # configs/z8encore000zco/ostest/defconfig
# #
# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved. # Copyright (C) 2008-2010, 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
+2 -2
View File
@@ -1,8 +1,8 @@
############################################################################ ############################################################################
# configs/z8f64200100kit/ostest/defconfig # configs/z8f64200100kit/ostest/defconfig
# #
# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved. # Copyright (C) 2008, 2010, 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