mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2024-11-22 05:54:19 +00:00
update
This commit is contained in:
parent
60ffc5c30f
commit
a07f6dcd3d
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ void _i2c_ic_off(i2c_drv_t *pi2c)
|
||||||
i2c_disable(pi2c);
|
i2c_disable(pi2c);
|
||||||
uint32 mask = BIT_PERI_I2C0_EN << pi2c->idx;
|
uint32 mask = BIT_PERI_I2C0_EN << pi2c->idx;
|
||||||
HAL_PERI_ON_WRITE32(REG_SOC_PERI_FUNC0_EN,
|
HAL_PERI_ON_WRITE32(REG_SOC_PERI_FUNC0_EN,
|
||||||
HAL_PERI_ON_READ32(REG_SOC_PERI_FUNC0_EN) | mask);
|
HAL_PERI_ON_READ32(REG_SOC_PERI_FUNC0_EN) & (~mask));
|
||||||
HalPinCtrlRtl8195A(I2C0 + pi2c->idx, pi2c->io_sel, 0);
|
HalPinCtrlRtl8195A(I2C0 + pi2c->idx, pi2c->io_sel, 0);
|
||||||
#ifdef CONFIG_SOC_PS_MODULE
|
#ifdef CONFIG_SOC_PS_MODULE
|
||||||
REG_POWER_STATE i2cPwrState;
|
REG_POWER_STATE i2cPwrState;
|
||||||
|
|
Loading…
Reference in a new issue