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
This commit is contained in:
patacongo
2013-02-27 22:24:49 +00:00
parent 8a776f6dd6
commit 6825fe9152
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -327,8 +327,8 @@ CONFIG_UART1_SERIAL_CONSOLE=y
# #
# UART1 Configuration # UART1 Configuration
# #
CONFIG_UART1_RXBUFSIZE=256 CONFIG_UART1_RXBUFSIZE=64
CONFIG_UART1_TXBUFSIZE=256 CONFIG_UART1_TXBUFSIZE=64
CONFIG_UART1_BAUD=115200 CONFIG_UART1_BAUD=115200
CONFIG_UART1_BITS=8 CONFIG_UART1_BITS=8
CONFIG_UART1_PARITY=0 CONFIG_UART1_PARITY=0
@@ -562,7 +562,7 @@ CONFIG_NSH_DISABLE_UMOUNT=y
CONFIG_NSH_DISABLE_WGET=y CONFIG_NSH_DISABLE_WGET=y
# CONFIG_NSH_DISABLE_XD is not set # CONFIG_NSH_DISABLE_XD is not set
CONFIG_NSH_CODECS_BUFSIZE=128 CONFIG_NSH_CODECS_BUFSIZE=128
CONFIG_NSH_FILEIOSIZE=512 CONFIG_NSH_FILEIOSIZE=64
CONFIG_NSH_LINELEN=80 CONFIG_NSH_LINELEN=80
CONFIG_NSH_NESTDEPTH=3 CONFIG_NSH_NESTDEPTH=3
CONFIG_NSH_DISABLESCRIPT=y CONFIG_NSH_DISABLESCRIPT=y
+1 -1
View File
@@ -122,7 +122,7 @@ static bool up_txempty(FAR struct uart_dev_s *dev);
* Private Variables * Private Variables
****************************************************************************/ ****************************************************************************/
struct uart_ops_s g_uart_ops = static const struct uart_ops_s g_uart_ops =
{ {
up_setup, /* setup */ up_setup, /* setup */
up_shutdown, /* shutdown */ up_shutdown, /* shutdown */
+1 -1
View File
@@ -87,7 +87,7 @@ static bool up_txempty(FAR struct uart_dev_s *dev);
* Private Variables * Private Variables
****************************************************************************/ ****************************************************************************/
struct uart_ops_s g_uart_ops = static const struct uart_ops_s g_uart_ops =
{ {
up_setup, /* setup */ up_setup, /* setup */
up_shutdown, /* shutdown */ up_shutdown, /* shutdown */