mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
mpfs/i2c: fix bus initialize for i2c1
This commit is contained in:
committed by
Xiang Xiao
parent
1e3919e55a
commit
8b560e7894
@@ -764,11 +764,11 @@ struct i2c_master_s *mpfs_i2cbus_initialize(int port)
|
|||||||
priv = &g_mpfs_i2c0_lo_priv;
|
priv = &g_mpfs_i2c0_lo_priv;
|
||||||
break;
|
break;
|
||||||
#endif /* CONFIG_MPFS_I2C0 */
|
#endif /* CONFIG_MPFS_I2C0 */
|
||||||
#ifdef CONFIG_MPFS_I2C0
|
#ifdef CONFIG_MPFS_I2C1
|
||||||
case 1:
|
case 1:
|
||||||
priv = &g_mpfs_i2c1_lo_priv;
|
priv = &g_mpfs_i2c1_lo_priv;
|
||||||
break;
|
break;
|
||||||
#endif /* CONFIG_MPFS_I2C0 */
|
#endif /* CONFIG_MPFS_I2C1 */
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user