Repository: incubator-mynewt-core Updated Branches: refs/heads/develop c117b7b27 -> 37864b722
MYNEWT-432 Cleanup Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/37864b72 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/37864b72 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/37864b72 Branch: refs/heads/develop Commit: 37864b7223dfcf1f5338e17aebcf283f64257656 Parents: c117b7b Author: Vipul Rahane <vipulrah...@apache.org> Authored: Mon Oct 10 17:50:08 2016 -0700 Committer: Vipul Rahane <vipulrah...@apache.org> Committed: Mon Oct 10 17:51:12 2016 -0700 ---------------------------------------------------------------------- hw/mcu/stm/stm32f4xx/src/hal_spi.c | 16 ---------------- 1 file changed, 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/37864b72/hw/mcu/stm/stm32f4xx/src/hal_spi.c ---------------------------------------------------------------------- diff --git a/hw/mcu/stm/stm32f4xx/src/hal_spi.c b/hw/mcu/stm/stm32f4xx/src/hal_spi.c index 23b84e1..5e064c3 100644 --- a/hw/mcu/stm/stm32f4xx/src/hal_spi.c +++ b/hw/mcu/stm/stm32f4xx/src/hal_spi.c @@ -219,7 +219,6 @@ uint32_t stm32f4_resolve_spi_irq_handler(SPI_HandleTypeDef *hspi) { switch((uintptr_t)hspi->Instance) { - /* DMA2 */ case (uintptr_t)SPI1: return (uint32_t)&spi1_irq_handler; case (uintptr_t)SPI2: @@ -330,31 +329,16 @@ hal_spi_init(int spi_num, void *usercfg, uint8_t spi_type) goto err; } - //rc = hal_gpio_init_out(cfg->sck_pin, 0); - //if (rc != 0) { - // goto err; - //} - rc = hal_gpio_init_stm(cfg->miso_pin, &pcf); if (rc != 0) { goto err; } - //rc = hal_gpio_init_in(cfg->miso_pin, 0); - //if (rc != 0) { - // goto err; - //} - rc = hal_gpio_init_stm(cfg->mosi_pin, &pcf); if (rc != 0) { goto err; } - // rc = hal_gpio_init_out(cfg->mosi_pin, 0); - //if (rc != 0) { - // goto err; - //} - NVIC_SetPriority(stm32f4_resolve_spi_irq(&spi->handle), NVIC_EncodePriority(NVIC_GetPriorityGrouping(), 0, 0)); NVIC_SetVector(stm32f4_resolve_spi_irq(&spi->handle),