You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2019/07/18 19:10:36 UTC
[mynewt-core] branch master updated: Changed i2c pin functions from
push-pull to open drain (#1920)
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 83d1ef0 Changed i2c pin functions from push-pull to open drain (#1920)
83d1ef0 is described below
commit 83d1ef067678de753b373604e530067630254183
Author: Grant Freese <gr...@x146.com>
AuthorDate: Thu Jul 18 12:10:31 2019 -0700
Changed i2c pin functions from push-pull to open drain (#1920)
---
hw/mcu/dialog/da1469x/src/hal_i2c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/mcu/dialog/da1469x/src/hal_i2c.c b/hw/mcu/dialog/da1469x/src/hal_i2c.c
index a5517a8..276d547 100644
--- a/hw/mcu/dialog/da1469x/src/hal_i2c.c
+++ b/hw/mcu/dialog/da1469x/src/hal_i2c.c
@@ -116,8 +116,8 @@ i2c_init_hw(const struct da1469x_hal_i2c *i2c, int pin_scl, int pin_sda)
da1469x_pd_acquire(MCU_PD_DOMAIN_COM);
/* Configure SCL, SDA.*/
- mcu_gpio_set_pin_function(pin_scl, MCU_GPIO_MODE_OUTPUT, i2c->scl_func);
- mcu_gpio_set_pin_function(pin_sda, MCU_GPIO_MODE_OUTPUT, i2c->sda_func);
+ mcu_gpio_set_pin_function(pin_scl, MCU_GPIO_MODE_OUTPUT_OPEN_DRAIN, i2c->scl_func);
+ mcu_gpio_set_pin_function(pin_sda, MCU_GPIO_MODE_OUTPUT_OPEN_DRAIN, i2c->sda_func);
if (i2c == da1469x_hal_i2cs[0]) {
CRG_COM->RESET_CLK_COM_REG = CRG_COM_RESET_CLK_COM_REG_I2C_CLK_SEL_Msk;