ARM architecture supports lowconsole

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@930 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-09-18 14:48:26 +00:00
parent 68271820db
commit aacdfb11b6
34 changed files with 164 additions and 48 deletions
+1
View File
@@ -477,5 +477,6 @@
* Complete the basic port of the NXP LPC2148 on the mcu123.com board. * Complete the basic port of the NXP LPC2148 on the mcu123.com board.
The basic port includes successful booting, serial console and succesfully The basic port includes successful booting, serial console and succesfully
passing the examples/ostest. passing the examples/ostest.
* ARM architectures now support drivers/lowconsole.c
+2 -1
View File
@@ -8,7 +8,7 @@
<tr align="center" bgcolor="#e4e4e4"> <tr align="center" bgcolor="#e4e4e4">
<td> <td>
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1> <h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
<p>Last Updated: September 17, 2008</p> <p>Last Updated: September 18, 2008</p>
</td> </td>
</tr> </tr>
</table> </table>
@@ -1111,6 +1111,7 @@ nuttx-0.3.15 2008-xx-xx Gregory Nutt &lt;spudmonkey@racsa.co.cr&gt;
* Complete the basic port of the NXP LPC2148 on the mcu123.com board. * Complete the basic port of the NXP LPC2148 on the mcu123.com board.
The basic port includes successful booting, serial console and succesfully The basic port includes successful booting, serial console and succesfully
passing the examples/ostest. passing the examples/ostest.
* ARM architectures now support drivers/lowconsole.c
pascal-0.1.3 2008-xx-xx Gregory Nutt &lt;spudmonkey@racsa.co.cr&gt; pascal-0.1.3 2008-xx-xx Gregory Nutt &lt;spudmonkey@racsa.co.cr&gt;
+2 -2
View File
@@ -1,7 +1,7 @@
/************************************************************************** /**************************************************************************
* c5471/c5471_lowputc.S * c5471/c5471_lowputc.S
* *
* Copyright (C) 2007 Gregory Nutt. All rights reserved. * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in * notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the * the documentation and/or other materials provided with the
* distribution. * distribution.
* 3. Neither the name Gregory Nutt nor the names of its contributors may be * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software * used to endorse or promote products derived from this software
* without specific prior written permission. * without specific prior written permission.
* *
+1 -1
View File
@@ -284,7 +284,7 @@ __start:
#endif #endif
/* Perform early serial initialization */ /* Perform early serial initialization */
#if defined(CONFIG_DEV_CONSOLE) && CONFIG_NFILE_DESCRIPTORS > 0 #ifdef CONFIG_USE_EARLYSERIALINIT
bl up_earlyserialinit bl up_earlyserialinit
#endif #endif
+4
View File
@@ -135,7 +135,11 @@ void up_initialize(void)
/* Initialize the serial device driver */ /* Initialize the serial device driver */
#ifdef CONFIG_USE_SERIALDRIVER
up_serialinit(); up_serialinit();
#elif defined(CONFIG_DEV_LOWCONSOLE)
lowconsole_init();
#endif
/* Initialize the netwok */ /* Initialize the netwok */
+18 -6
View File
@@ -55,6 +55,16 @@
#undef CONFIG_SUPPRESS_UART_CONFIG /* DEFINED: Do not reconfig UART */ #undef CONFIG_SUPPRESS_UART_CONFIG /* DEFINED: Do not reconfig UART */
#undef CONFIG_DUMP_ON_EXIT /* DEFINED: Dump task state on exit */ #undef CONFIG_DUMP_ON_EXIT /* DEFINED: Dump task state on exit */
/* Determine which (if any) console driver to use */
#if CONFIG_NFILE_DESCRIPTORS == 0 || defined(CONFIG_DEV_LOWCONSOLE)
# undef CONFIG_USE_SERIALDRIVER
# undef CONFIG_USE_EARLYSERIALINIT
#elif defined(CONFIG_DEV_CONSOLE) && CONFIG_NFILE_DESCRIPTORS > 0
# define CONFIG_USE_SERIALDRIVER 1
# define CONFIG_USE_EARLYSERIALINIT 1
#endif
/**************************************************************************** /****************************************************************************
* Public Types * Public Types
****************************************************************************/ ****************************************************************************/
@@ -88,7 +98,6 @@ extern uint32 g_heapbase;
* Inline Functions * Inline Functions
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
@@ -110,12 +119,7 @@ extern void up_sigdeliver(void);
extern void up_syscall(uint32 *regs); extern void up_syscall(uint32 *regs);
extern int up_timerisr(int irq, uint32 *regs); extern int up_timerisr(int irq, uint32 *regs);
extern void up_undefinedinsn(uint32 *regs); extern void up_undefinedinsn(uint32 *regs);
#ifdef CONFIG_DEBUG
extern void up_lowputc(char ch); extern void up_lowputc(char ch);
#else
# define up_lowputc(ch)
#endif
/* Defined in up_vectors.S */ /* Defined in up_vectors.S */
@@ -137,6 +141,14 @@ extern void up_serialinit(void);
# define up_serialinit() # define up_serialinit()
#endif #endif
/* Defined in drivers/lowconsole.c */
#ifdef CONFIG_DEV_LOWCONSOLE
extern void lowconsole_init(void);
#else
# define lowconsole_init()
#endif
/* Defined in up_watchdog.c */ /* Defined in up_watchdog.c */
extern void up_wdtinit(void); extern void up_wdtinit(void);
+1 -1
View File
@@ -105,10 +105,10 @@ __start:
#endif #endif
#if defined(CONFIG_DEV_CONSOLE) && CONFIG_NFILE_DESCRIPTORS >0
/* Perform early serial initialization */ /* Perform early serial initialization */
mov fp, #0 mov fp, #0
#ifdef CONFIG_USE_EARLYSERIALINIT
bl up_earlyserialinit bl up_earlyserialinit
#endif #endif
+2 -2
View File
@@ -1,7 +1,7 @@
/************************************************************************** /**************************************************************************
* dm320/dm320_lowputc.S * dm320/dm320_lowputc.S
* *
* Copyright (C) 2007 Gregory Nutt. All rights reserved. * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in * notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the * the documentation and/or other materials provided with the
* distribution. * distribution.
* 3. Neither the name Gregory Nutt nor the names of its contributors may be * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software * used to endorse or promote products derived from this software
* without specific prior written permission. * without specific prior written permission.
* *
+3 -3
View File
@@ -55,7 +55,7 @@
#include "os_internal.h" #include "os_internal.h"
#include "up_internal.h" #include "up_internal.h"
#if CONFIG_NFILE_DESCRIPTORS > 0 #ifdef CONFIG_USE_SERIALDRIVER
/**************************************************************************** /****************************************************************************
* Definitions * Definitions
@@ -780,7 +780,7 @@ int up_putc(int ch)
return ch; return ch;
} }
#else /* CONFIG_NFILE_DESCRIPTORS > 0 */ #else /* CONFIG_USE_SERIALDRIVER */
/**************************************************************************** /****************************************************************************
* Definitions * Definitions
@@ -833,6 +833,6 @@ int up_putc(int ch)
return ch; return ch;
} }
#endif /* CONFIG_NFILE_DESCRIPTORS > 0 */ #endif /* CONFIG_USE_SERIALDRIVER */
+2
View File
@@ -477,7 +477,9 @@ __start:
/* Perform early serial initialization */ /* Perform early serial initialization */
mov fp, #0 mov fp, #0
#ifdef CONFIG_USE_EARLYSERIALINIT
bl up_earlyserialinit bl up_earlyserialinit
#endif
showprogress 'C' showprogress 'C'
showprogress '\n' showprogress '\n'
+31 -4
View File
@@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* lpc214x/lpc214x_serial.c * arch/arm/src/lpc214x/lpc214x_serial.c
* *
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -55,11 +55,13 @@
#include "lpc214x_uart.h" #include "lpc214x_uart.h"
#ifdef CONFIG_USE_SERIALDRIVER
/**************************************************************************** /****************************************************************************
* Definitions * Definitions
****************************************************************************/ ****************************************************************************/
#define BASE_BAUD 115200 #define BASE_BAUD 38400
/**************************************************************************** /****************************************************************************
* Private Types * Private Types
@@ -735,8 +737,7 @@ void up_serialinit(void)
* Name: up_putc * Name: up_putc
* *
* Description: * Description:
* Provide priority, low-level access to support OS debug * Provide priority, low-level access to support OS debug writes
* writes
* *
****************************************************************************/ ****************************************************************************/
@@ -764,3 +765,29 @@ int up_putc(int ch)
return ch; return ch;
} }
#else /* CONFIG_USE_SERIALDRIVER */
/****************************************************************************
* Name: up_putc
*
* Description:
* Provide priority, low-level access to support OS debug writes
*
****************************************************************************/
int up_putc(int ch)
{
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
up_lowputc('\r');
}
up_lowputc(ch);
return ch;
}
#endif /* CONFIG_USE_SERIALDRIVER */
+1 -1
View File
@@ -63,7 +63,7 @@
* Definitions * Definitions
****************************************************************************/ ****************************************************************************/
/* Determine which (if any) console driver to use */ /* Determine which (if any) console driver to use */
#if CONFIG_NFILE_DESCRIPTORS == 0 || defined(CONFIG_DEV_LOWCONSOLE) #if CONFIG_NFILE_DESCRIPTORS == 0 || defined(CONFIG_DEV_LOWCONSOLE)
# undef CONFIG_USE_SERIALDRIVER # undef CONFIG_USE_SERIALDRIVER
+3
View File
@@ -145,6 +145,8 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=ostest CONFIG_EXAMPLE=ostest
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -159,6 +161,7 @@ CONFIG_START_MONTH=2
CONFIG_START_DAY=13 CONFIG_START_DAY=13
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -145,6 +145,8 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=uip CONFIG_EXAMPLE=uip
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -159,6 +161,7 @@ CONFIG_START_MONTH=2
CONFIG_START_DAY=13 CONFIG_START_DAY=13
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -145,6 +145,8 @@ CONFIG_UART_MODEM_2STOP=0
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=nettest CONFIG_EXAMPLE=nettest
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -159,6 +161,7 @@ CONFIG_START_MONTH=2
CONFIG_START_DAY=13 CONFIG_START_DAY=13
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -145,6 +145,8 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=nsh CONFIG_EXAMPLE=nsh
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -159,6 +161,7 @@ CONFIG_START_MONTH=2
CONFIG_START_DAY=13 CONFIG_START_DAY=13
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -134,6 +134,8 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=ostest CONFIG_EXAMPLE=ostest
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -148,6 +150,7 @@ CONFIG_START_MONTH=2
CONFIG_START_DAY=13 CONFIG_START_DAY=13
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+17 -9
View File
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# configs/mcu123-lpc214x/defconfig # configs/mcu123-lpc214x/ostest/defconfig
# #
# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. # Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr> # Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,7 +33,7 @@
# #
############################################################################ ############################################################################
# #
# architecture selection # Architecture selection
# #
# CONFIG_ARCH - identifies the arch subdirectory and, hence, the # CONFIG_ARCH - identifies the arch subdirectory and, hence, the
# processor architecture. # processor architecture.
@@ -158,13 +158,15 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=ostest CONFIG_EXAMPLE=ostest
CONFIG_DEBUG=n CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n CONFIG_DEBUG_VERBOSE=n
CONFIG_MM_REGIONS=1 CONFIG_MM_REGIONS=1
CONFIG_ARCH_LOWPUTC=y CONFIG_ARCH_LOWPUTC=y
CONFIG_RR_INTERVAL=200 CONFIG_RR_INTERVAL=0
CONFIG_SCHED_INSTRUMENTATION=n CONFIG_SCHED_INSTRUMENTATION=n
CONFIG_TASK_NAME_SIZE=0 CONFIG_TASK_NAME_SIZE=0
CONFIG_START_YEAR=2008 CONFIG_START_YEAR=2008
@@ -172,6 +174,7 @@ CONFIG_START_MONTH=9
CONFIG_START_DAY=17 CONFIG_START_DAY=17
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=y
# #
# The following can be used to disable categories of # The following can be used to disable categories of
@@ -264,12 +267,12 @@ CONFIG_NPTHREAD_KEYS=4
CONFIG_NFILE_DESCRIPTORS=8 CONFIG_NFILE_DESCRIPTORS=8
CONFIG_NFILE_STREAMS=8 CONFIG_NFILE_STREAMS=8
CONFIG_NAME_MAX=32 CONFIG_NAME_MAX=32
CONFIG_STDIO_BUFFER_SIZE=512 CONFIG_STDIO_BUFFER_SIZE=256
CONFIG_NUNGET_CHARS=2 CONFIG_NUNGET_CHARS=2
CONFIG_PREALLOC_MQ_MSGS=8 CONFIG_PREALLOC_MQ_MSGS=4
CONFIG_MQ_MAXMSGSIZE=32 CONFIG_MQ_MAXMSGSIZE=32
CONFIG_MAX_WDOGPARMS=4 CONFIG_MAX_WDOGPARMS=2
CONFIG_PREALLOC_WDOGS=8 CONFIG_PREALLOC_WDOGS=4
CONFIG_PREALLOC_TIMERS=4 CONFIG_PREALLOC_TIMERS=4
# #
@@ -324,6 +327,11 @@ CONFIG_NET_BROADCAST=n
CONFIG_NET_DHCP_LIGHT=n CONFIG_NET_DHCP_LIGHT=n
CONFIG_NET_RESOLV_ENTRIES=4 CONFIG_NET_RESOLV_ENTRIES=4
#
# Settings for examples/ostest
CONFIG_EXAMPLES_OSTEST_LOOPS=1
CONFIG_EXAMPLES_OSTEST_STACKSIZE=512
# #
# Settings for examples/nsh # Settings for examples/nsh
CONFIG_EXAMPLES_NSH_CONSOLE=y CONFIG_EXAMPLES_NSH_CONSOLE=y
@@ -354,8 +362,8 @@ CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
CONFIG_BOOT_FROM_FLASH=y CONFIG_BOOT_FROM_FLASH=y
CONFIG_CUSTOM_STACK=n CONFIG_CUSTOM_STACK=n
CONFIG_STACK_POINTER= CONFIG_STACK_POINTER=
CONFIG_PROC_STACK_SIZE=1024 CONFIG_PROC_STACK_SIZE=512
CONFIG_PTHREAD_STACK_MIN=256 CONFIG_PTHREAD_STACK_MIN=256
CONFIG_PTHREAD_STACK_DEFAULT=1024 CONFIG_PTHREAD_STACK_DEFAULT=512
CONFIG_HEAP_BASE= CONFIG_HEAP_BASE=
CONFIG_HEAP_SIZE= CONFIG_HEAP_SIZE=
+3
View File
@@ -143,6 +143,8 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=nettest CONFIG_EXAMPLE=nettest
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -157,6 +159,7 @@ CONFIG_START_MONTH=8
CONFIG_START_DAY=29 CONFIG_START_DAY=29
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -143,6 +143,8 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=nsh CONFIG_EXAMPLE=nsh
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -157,6 +159,7 @@ CONFIG_START_MONTH=9
CONFIG_START_DAY=12 CONFIG_START_DAY=12
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -143,6 +143,8 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=ostest CONFIG_EXAMPLE=ostest
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -157,6 +159,7 @@ CONFIG_START_MONTH=8
CONFIG_START_DAY=29 CONFIG_START_DAY=29
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -143,6 +143,8 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=udp CONFIG_EXAMPLE=udp
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -157,6 +159,7 @@ CONFIG_START_MONTH=8
CONFIG_START_DAY=29 CONFIG_START_DAY=29
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -143,6 +143,8 @@ CONFIG_HAVE_LIBM=n
# CONFIG_JULIAN_TIME - Enables Julian time conversions # CONFIG_JULIAN_TIME - Enables Julian time conversions
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=uip CONFIG_EXAMPLE=uip
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -157,6 +159,7 @@ CONFIG_START_MONTH=8
CONFIG_START_DAY=29 CONFIG_START_DAY=29
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=n CONFIG_DEV_CONSOLE=n
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -131,6 +131,8 @@ CONFIG_HAVE_LIBM=n
# Used to initialize the internal time logic. # Used to initialize the internal time logic.
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=ostest CONFIG_EXAMPLE=ostest
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -145,6 +147,7 @@ CONFIG_START_MONTH=2
CONFIG_START_DAY=21 CONFIG_START_DAY=21
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=n CONFIG_DEV_CONSOLE=n
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -80,6 +80,8 @@ CONFIG_ARCH_BOARD_SIM=y
# Used to initialize the internal time logic. # Used to initialize the internal time logic.
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=mount CONFIG_EXAMPLE=mount
CONFIG_DEBUG=y CONFIG_DEBUG=y
@@ -94,6 +96,7 @@ CONFIG_START_MONTH=6
CONFIG_START_DAY=1 CONFIG_START_DAY=1
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -80,6 +80,8 @@ CONFIG_ARCH_BOARD_SIM=y
# Used to initialize the internal time logic. # Used to initialize the internal time logic.
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=nettest CONFIG_EXAMPLE=nettest
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -94,6 +96,7 @@ CONFIG_START_MONTH=8
CONFIG_START_DAY=16 CONFIG_START_DAY=16
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -80,6 +80,8 @@ CONFIG_ARCH_BOARD_SIM=y
# Used to initialize the internal time logic. # Used to initialize the internal time logic.
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=nsh CONFIG_EXAMPLE=nsh
CONFIG_DEBUG=y CONFIG_DEBUG=y
@@ -94,6 +96,7 @@ CONFIG_START_MONTH=6
CONFIG_START_DAY=1 CONFIG_START_DAY=1
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+3
View File
@@ -80,6 +80,8 @@ CONFIG_ARCH_BOARD_SIM=y
# Used to initialize the internal time logic. # Used to initialize the internal time logic.
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=ostest CONFIG_EXAMPLE=ostest
CONFIG_DEBUG=y CONFIG_DEBUG=y
@@ -94,6 +96,7 @@ CONFIG_START_MONTH=2
CONFIG_START_DAY=27 CONFIG_START_DAY=27
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
CONFIG_MUTEX_TYPES=y CONFIG_MUTEX_TYPES=y
# #
+3
View File
@@ -80,6 +80,8 @@ CONFIG_ARCH_BOARD_SIM=y
# Used to initialize the internal time logic. # Used to initialize the internal time logic.
# 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.
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimul support)
# #
CONFIG_EXAMPLE=pashello CONFIG_EXAMPLE=pashello
CONFIG_DEBUG=n CONFIG_DEBUG=n
@@ -94,6 +96,7 @@ CONFIG_START_MONTH=2
CONFIG_START_DAY=27 CONFIG_START_DAY=27
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
# #
# The following can be used to disable categories of # The following can be used to disable categories of
+1 -2
View File
@@ -131,9 +131,8 @@ CONFIG_START_YEAR=2007
CONFIG_START_MONTH=2 CONFIG_START_MONTH=2
CONFIG_START_DAY=21 CONFIG_START_DAY=21
CONFIG_JULIAN_TIME=n CONFIG_JULIAN_TIME=n
CONFIG_DEV_CONSOLE=y
CONFIG_HAVE_LOWUARTINIT=n CONFIG_HAVE_LOWUARTINIT=n
CONFIG_DEV_LOWCONSOLE=y CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n CONFIG_DEV_LOWCONSOLE=n
# #
+6
View File
@@ -50,6 +50,12 @@
* Definitions * Definitions
****************************************************************************/ ****************************************************************************/
/* The architecture must provide up_putc for this driver */
#ifndef CONFIG_ARCH_LOWPUTC
# error "Architecture must provide up_putc() for this driver"
#endif
/**************************************************************************** /****************************************************************************
* Private Function Prototypes * Private Function Prototypes
****************************************************************************/ ****************************************************************************/
+6 -4
View File
@@ -53,12 +53,14 @@
* Definitions * Definitions
************************************************************************************/ ************************************************************************************/
#ifdef CONFIG_HAVE_LOWPUTC /* The architecture must provide up_putc for this driver */
# define uart_putc(ch) up_lowputc(ch);
#else #ifndef CONFIG_ARCH_LOWPUTC
# define uart_putc(ch) up_putc(ch); # error "Architecture must provide up_putc() for this driver"
#endif #endif
#define uart_putc(ch) up_putc(ch)
/************************************************************************************ /************************************************************************************
* Private Types * Private Types
************************************************************************************/ ************************************************************************************/
+4 -1
View File
@@ -40,7 +40,10 @@ ASRCS =
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = main.c dev_null.c CSRCS = main.c dev_null.c
ifneq ($(CONFIG_DISABLE_PTHREAD),y) ifneq ($(CONFIG_DISABLE_PTHREAD),y)
CSRCS += cancel.c cond.c mutex.c sem.c roundrobin.c barrier.c CSRCS += cancel.c cond.c mutex.c sem.c barrier.c
ifneq ($(CONFIG_RR_INTERVAL),0)
CSRCS += roundrobin.c
endif
ifeq ($(CONFIG_MUTEX_TYPES),y) ifeq ($(CONFIG_MUTEX_TYPES),y)
CSRCS += rmutex.c CSRCS += rmutex.c
endif endif
+5 -2
View File
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in * notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the * the documentation and/or other materials provided with the
* distribution. * distribution.
* 3. Neither the name Gregory NuttX nor the names of its contributors may be * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software * used to endorse or promote products derived from this software
* without specific prior written permission. * without specific prior written permission.
* *
@@ -47,7 +47,10 @@
* Definitions * Definitions
********************************************************************************/ ********************************************************************************/
/* This number may need to be tuned for different processor speeds */ /* This number may need to be tuned for different processor speeds. Since these
* arrays must be large to very correct SCHED_RR behavior, this test may require
* too much memory on many targets.
*/
/* #define CONFIG_NINTEGERS 32768 Takes forever on 60Mhz ARM7 */ /* #define CONFIG_NINTEGERS 32768 Takes forever on 60Mhz ARM7 */