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:
parent
8a776f6dd6
commit
6825fe9152
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user