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:
parent
54b886ca0d
commit
037d5038f9
|
@ -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);
|
||||
|
|
|
@ -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__
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue