boards/kinetis: Fix multiple definition of `i2c_dev'

when -fno-common is enabled

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-02-20 07:41:53 +08:00 committed by Xiang Xiao
parent 54b886ca0d
commit 037d5038f9
2 changed files with 1 additions and 11 deletions

View File

@ -53,7 +53,7 @@
void kinetis_i2cdev_initialize(void)
{
i2c_dev = NULL;
FAR struct i2c_master_s *i2c_dev = NULL;
#if defined(CONFIG_KINETIS_I2C0)
i2c_dev = kinetis_i2cbus_initialize(0);

View File

@ -55,16 +55,6 @@
#define GPIO_LED (GPIO_HIGHDRIVE | GPIO_OUTPUT_ZERO | PIN_PORTC | PIN5)
/****************************************************************************
* Public Types
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
FAR struct i2c_master_s *i2c_dev;
#ifndef __ASSEMBLY__
/****************************************************************************