From 4a62de545bf87610c2415218e144ddef4dd0e75c Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 11 Feb 2012 03:50:52 +0000 Subject: 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 --- nuttx/arch/z80/src/common/up_initialize.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'nuttx/arch/z80/src/common/up_initialize.c') diff --git a/nuttx/arch/z80/src/common/up_initialize.c b/nuttx/arch/z80/src/common/up_initialize.c index 1c71fa517..a4659a2e9 100644 --- a/nuttx/arch/z80/src/common/up_initialize.c +++ b/nuttx/arch/z80/src/common/up_initialize.c @@ -1,8 +1,8 @@ /**************************************************************************** * arch/z80/src/common/up_initialize.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -153,14 +153,18 @@ void up_initialize(void) /* Initialize the serial device driver */ -#ifdef CONFIG_USE_LOWUARTINIT +#ifdef USE_LOWUARTINIT up_lowuartinit(); #endif -#ifdef CONFIG_USE_SERIALDRIVER + /* Initialize the console device driver */ + +#if defined(USE_SERIALDRIVER) up_serialinit(); #elif defined(CONFIG_DEV_LOWCONSOLE) lowconsole_init(); +#elif defined(CONFIG_RAMLOG_CONSOLE) + ramlog_consoleinit(); #endif /* Initialize the netwok */ -- cgit v1.2.3