From eea6e7e95a7c2ac1343ea0485782efa02a737ec2 Mon Sep 17 00:00:00 2001 From: asterix Date: Fri, 30 Jul 2010 12:40:12 +0000 Subject: [PATCH] Silent warning. Make static sono i2c table. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4102 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/drv/i2c_lpc2.c | 2 +- bertos/cpu/cortex-m3/drv/i2c_lm3s.c | 2 +- bertos/cpu/cortex-m3/drv/i2c_stm32.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bertos/cpu/arm/drv/i2c_lpc2.c b/bertos/cpu/arm/drv/i2c_lpc2.c index 94de0c20..fd6a9fda 100644 --- a/bertos/cpu/arm/drv/i2c_lpc2.c +++ b/bertos/cpu/arm/drv/i2c_lpc2.c @@ -265,7 +265,7 @@ static const I2cVT i2c_lpc_vt = .read = i2c_genericRead, }; -static const struct I2cHardware i2c_lpc2_hw[] = +static struct I2cHardware i2c_lpc2_hw[] = { { /* I2C0 */ .base = I2C0_BASE_ADDR, diff --git a/bertos/cpu/cortex-m3/drv/i2c_lm3s.c b/bertos/cpu/cortex-m3/drv/i2c_lm3s.c index 22777582..fd2f5905 100644 --- a/bertos/cpu/cortex-m3/drv/i2c_lm3s.c +++ b/bertos/cpu/cortex-m3/drv/i2c_lm3s.c @@ -205,7 +205,7 @@ static const I2cVT i2c_lm3s_vt = .read = i2c_genericRead, }; -struct I2cHardware i2c_lm3s_hw[] = +static struct I2cHardware i2c_lm3s_hw[] = { { /* I2C0 */ .base = I2C0_MASTER_BASE, diff --git a/bertos/cpu/cortex-m3/drv/i2c_stm32.c b/bertos/cpu/cortex-m3/drv/i2c_stm32.c index 9fb12171..9fd53f01 100644 --- a/bertos/cpu/cortex-m3/drv/i2c_stm32.c +++ b/bertos/cpu/cortex-m3/drv/i2c_stm32.c @@ -303,7 +303,7 @@ static const I2cVT i2c_stm32_vt = .read = i2c_genericRead, }; -struct I2cHardware i2c_stm32_hw[] = +static struct I2cHardware i2c_stm32_hw[] = { { /* I2C1 */ .base = (struct stm32_i2c *)I2C1_BASE, -- 2.25.1