Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/board/rtl8730e: add driver layer implemenation for i2s tdm #6541

Open
wants to merge 8 commits into
base: TDM_Dev
Choose a base branch
from
11 changes: 11 additions & 0 deletions os/arch/arm/src/amebasmart/amebasmart_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,13 @@ static const struct amebasmart_i2c_config_s amebasmart_i2c0_config = {
//.filtscl = CONFIG_I2C0_FILTSCL,
//.filtsda = CONFIG_I2C0_FILTSDA,
#if CONFIG_RTL8730E_BOARD_REVISION >= 5
#ifdef CONFIG_AMEBASMART_I2S_TDM
.scl_pin = PB_30,
.sda_pin = PA_30,
#else
.scl_pin = PB_30,
.sda_pin = PB_29,
#endif
#else
.scl_pin = PA_10,
.sda_pin = PA_9,
Expand Down Expand Up @@ -371,8 +376,14 @@ static const struct amebasmart_i2c_config_s amebasmart_i2c2_config = {
//.busy_idle = CONFIG_I2C2_BUSYIDLE,
//.filtscl = CONFIG_I2C2_FILTSCL,
//.filtsda = CONFIG_I2C2_FILTSDA,
#ifdef CONFIG_AMEBASMART_I2S_TDM
.scl_pin = PB_11,
.sda_pin = PB_10,
#else
.scl_pin = PA_29,
.sda_pin = PA_28,
#endif

#ifndef CONFIG_I2C_SLAVE
.mode = AMEBASMART_I2C_MASTER,
#else
Expand Down
Loading