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 2020/01/10 22:29:18 UTC

[mynewt-core] branch master updated: mcu/dialog: hal_spi_init_master should not initialize the SS pin

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 606069d  mcu/dialog: hal_spi_init_master should not initialize the SS pin
     new ee6a289  Merge pull request #2151 from JuulLabs/fix/dialog-spi
606069d is described below

commit 606069d9f19401e5a0173402f983830862bd56ff
Author: Ben McCrea <bm...@juul.com>
AuthorDate: Thu Jan 9 13:50:34 2020 -0800

    mcu/dialog: hal_spi_init_master should not initialize the SS pin
---
 hw/mcu/dialog/da1469x/src/hal_spi.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/hw/mcu/dialog/da1469x/src/hal_spi.c b/hw/mcu/dialog/da1469x/src/hal_spi.c
index 1157849..8d1d953 100644
--- a/hw/mcu/dialog/da1469x/src/hal_spi.c
+++ b/hw/mcu/dialog/da1469x/src/hal_spi.c
@@ -207,10 +207,6 @@ hal_spi_init_master(const struct da1469x_hal_spi *spi,
         mcu_gpio_set_pin_function(cfg->pin_di, MCU_GPIO_MODE_INPUT,
                                   spi->hw->spi_di_func);
     }
-    if (cfg->pin_ss >= 0) {
-        mcu_gpio_set_pin_function(cfg->pin_ss, MCU_GPIO_MODE_INPUT,
-                                  spi->hw->spi_ss_func);
-    }
 
     spi->hw->regs->SPI_CLEAR_INT_REG = 0;
     spi->hw->regs->SPI_CTRL_REG = 0;