summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-27 22:24:49 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-27 22:24:49 +0000
commitf6094628f833b3729b3a067ab6a0b789316f50d7 (patch)
treea7db67c725fa1138d539a4db2545455b567f17e9 /nuttx/arch/arm/src
parent5d5fc5f3d4f24c903e4638099ebb1abc0a1c55f4 (diff)
downloadpx4-nuttx-f6094628f833b3729b3a067ab6a0b789316f50d7.tar.gz
px4-nuttx-f6094628f833b3729b3a067ab6a0b789316f50d7.tar.bz2
px4-nuttx-f6094628f833b3729b3a067ab6a0b789316f50d7.zip
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
Diffstat (limited to 'nuttx/arch/arm/src')
-rw-r--r--nuttx/arch/arm/src/c5471/c5471_serial.c2
-rw-r--r--nuttx/arch/arm/src/calypso/calypso_serial.c2
-rw-r--r--nuttx/arch/arm/src/dm320/dm320_serial.c2
-rw-r--r--nuttx/arch/arm/src/imx/imx_serial.c2
-rw-r--r--nuttx/arch/arm/src/kinetis/kinetis_serial.c2
-rw-r--r--nuttx/arch/arm/src/lm/lm_serial.c2
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_serial.c2
-rw-r--r--nuttx/arch/arm/src/lpc214x/lpc214x_serial.c2
-rw-r--r--nuttx/arch/arm/src/lpc2378/lpc23xx_serial.c2
-rw-r--r--nuttx/arch/arm/src/lpc31xx/lpc31_serial.c2
-rw-r--r--nuttx/arch/arm/src/lpc43xx/lpc43_serial.c2
-rw-r--r--nuttx/arch/arm/src/nuc1xx/nuc_serial.c2
-rw-r--r--nuttx/arch/arm/src/sam3u/sam3u_serial.c2
-rw-r--r--nuttx/arch/arm/src/str71x/str71x_serial.c2
14 files changed, 14 insertions, 14 deletions
diff --git a/nuttx/arch/arm/src/c5471/c5471_serial.c b/nuttx/arch/arm/src/c5471/c5471_serial.c
index ac86537ac..db28e196d 100644
--- a/nuttx/arch/arm/src/c5471/c5471_serial.c
+++ b/nuttx/arch/arm/src/c5471/c5471_serial.c
@@ -123,7 +123,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/calypso/calypso_serial.c b/nuttx/arch/arm/src/calypso/calypso_serial.c
index 62e20409b..01e65d062 100644
--- a/nuttx/arch/arm/src/calypso/calypso_serial.c
+++ b/nuttx/arch/arm/src/calypso/calypso_serial.c
@@ -137,7 +137,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/dm320/dm320_serial.c b/nuttx/arch/arm/src/dm320/dm320_serial.c
index 15e4ecdf9..58ff1e710 100644
--- a/nuttx/arch/arm/src/dm320/dm320_serial.c
+++ b/nuttx/arch/arm/src/dm320/dm320_serial.c
@@ -104,7 +104,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/imx/imx_serial.c b/nuttx/arch/arm/src/imx/imx_serial.c
index 07c9312f4..9182d4ac8 100644
--- a/nuttx/arch/arm/src/imx/imx_serial.c
+++ b/nuttx/arch/arm/src/imx/imx_serial.c
@@ -126,7 +126,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/kinetis/kinetis_serial.c b/nuttx/arch/arm/src/kinetis/kinetis_serial.c
index a35e0eef0..8ede027ec 100644
--- a/nuttx/arch/arm/src/kinetis/kinetis_serial.c
+++ b/nuttx/arch/arm/src/kinetis/kinetis_serial.c
@@ -269,7 +269,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/lm/lm_serial.c b/nuttx/arch/arm/src/lm/lm_serial.c
index ede47a8ca..13f3ca8df 100644
--- a/nuttx/arch/arm/src/lm/lm_serial.c
+++ b/nuttx/arch/arm/src/lm/lm_serial.c
@@ -243,7 +243,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c b/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c
index c94f2ff60..8f1c7a5d5 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c
@@ -117,7 +117,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/lpc214x/lpc214x_serial.c b/nuttx/arch/arm/src/lpc214x/lpc214x_serial.c
index 691adfa75..b035e91fc 100644
--- a/nuttx/arch/arm/src/lpc214x/lpc214x_serial.c
+++ b/nuttx/arch/arm/src/lpc214x/lpc214x_serial.c
@@ -103,7 +103,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/lpc2378/lpc23xx_serial.c b/nuttx/arch/arm/src/lpc2378/lpc23xx_serial.c
index 4f20cc7fd..c17a57840 100644
--- a/nuttx/arch/arm/src/lpc2378/lpc23xx_serial.c
+++ b/nuttx/arch/arm/src/lpc2378/lpc23xx_serial.c
@@ -111,7 +111,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/lpc31xx/lpc31_serial.c b/nuttx/arch/arm/src/lpc31xx/lpc31_serial.c
index c5438e1c8..c38325313 100644
--- a/nuttx/arch/arm/src/lpc31xx/lpc31_serial.c
+++ b/nuttx/arch/arm/src/lpc31xx/lpc31_serial.c
@@ -103,7 +103,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c b/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c
index 6e2e19f35..a6e6b7b18 100644
--- a/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c
+++ b/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c
@@ -116,7 +116,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/nuc1xx/nuc_serial.c b/nuttx/arch/arm/src/nuc1xx/nuc_serial.c
index 529f5c61b..dbf34f8ec 100644
--- a/nuttx/arch/arm/src/nuc1xx/nuc_serial.c
+++ b/nuttx/arch/arm/src/nuc1xx/nuc_serial.c
@@ -116,7 +116,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/sam3u/sam3u_serial.c b/nuttx/arch/arm/src/sam3u/sam3u_serial.c
index 811bfda69..149474207 100644
--- a/nuttx/arch/arm/src/sam3u/sam3u_serial.c
+++ b/nuttx/arch/arm/src/sam3u/sam3u_serial.c
@@ -582,7 +582,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,
diff --git a/nuttx/arch/arm/src/str71x/str71x_serial.c b/nuttx/arch/arm/src/str71x/str71x_serial.c
index d9e9cc348..5de63a1b9 100644
--- a/nuttx/arch/arm/src/str71x/str71x_serial.c
+++ b/nuttx/arch/arm/src/str71x/str71x_serial.c
@@ -269,7 +269,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
-struct uart_ops_s g_uart_ops =
+static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,