From 6825fe915242026e6ea8fce6ad2e5daacc07d0ff Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 27 Feb 2013 22:24:49 +0000 Subject: [PATCH] Some NuTiny-SDK-NUC120 size reduction; All serial driver vtables should be static const git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5683 42af7a65-404d-4744-a932-0658087f49c3 --- configs/nutiny-nuc120/nsh/defconfig | 6 +++--- configs/xtrs/src/xtr_serial.c | 2 +- configs/z80sim/src/z80_serial.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/nutiny-nuc120/nsh/defconfig b/configs/nutiny-nuc120/nsh/defconfig index 72d120bfcc..d884480f2f 100644 --- a/configs/nutiny-nuc120/nsh/defconfig +++ b/configs/nutiny-nuc120/nsh/defconfig @@ -327,8 +327,8 @@ CONFIG_UART1_SERIAL_CONSOLE=y # # UART1 Configuration # -CONFIG_UART1_RXBUFSIZE=256 -CONFIG_UART1_TXBUFSIZE=256 +CONFIG_UART1_RXBUFSIZE=64 +CONFIG_UART1_TXBUFSIZE=64 CONFIG_UART1_BAUD=115200 CONFIG_UART1_BITS=8 CONFIG_UART1_PARITY=0 @@ -562,7 +562,7 @@ CONFIG_NSH_DISABLE_UMOUNT=y CONFIG_NSH_DISABLE_WGET=y # CONFIG_NSH_DISABLE_XD is not set CONFIG_NSH_CODECS_BUFSIZE=128 -CONFIG_NSH_FILEIOSIZE=512 +CONFIG_NSH_FILEIOSIZE=64 CONFIG_NSH_LINELEN=80 CONFIG_NSH_NESTDEPTH=3 CONFIG_NSH_DISABLESCRIPT=y diff --git a/configs/xtrs/src/xtr_serial.c b/configs/xtrs/src/xtr_serial.c index eb6846179a..c56aa8403d 100644 --- a/configs/xtrs/src/xtr_serial.c +++ b/configs/xtrs/src/xtr_serial.c @@ -122,7 +122,7 @@ static bool up_txempty(FAR struct uart_dev_s *dev); * Private Variables ****************************************************************************/ -struct uart_ops_s g_uart_ops = +static const struct uart_ops_s g_uart_ops = { up_setup, /* setup */ up_shutdown, /* shutdown */ diff --git a/configs/z80sim/src/z80_serial.c b/configs/z80sim/src/z80_serial.c index 27d6850934..e06ac96e72 100644 --- a/configs/z80sim/src/z80_serial.c +++ b/configs/z80sim/src/z80_serial.c @@ -87,7 +87,7 @@ static bool up_txempty(FAR struct uart_dev_s *dev); * Private Variables ****************************************************************************/ -struct uart_ops_s g_uart_ops = +static const struct uart_ops_s g_uart_ops = { up_setup, /* setup */ up_shutdown, /* shutdown */