From: Keith Packard Date: Sun, 8 Apr 2012 01:54:32 +0000 (-0700) Subject: altos: STM SPI is not using interrupts itself X-Git-Tag: 1.0.9.5~71 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=b5e9d14b4e3e8f29ad8a7bb9b339890be4bcfa2f altos: STM SPI is not using interrupts itself All SPI transfers are done via DMA, so the DMA interrupts suffice. Signed-off-by: Keith Packard --- diff --git a/src/stm/ao_spi_stm.c b/src/stm/ao_spi_stm.c index 92747d87..ecf7934f 100644 --- a/src/stm/ao_spi_stm.c +++ b/src/stm/ao_spi_stm.c @@ -229,9 +229,6 @@ ao_spi_init(void) stm_rcc.apb2enr |= (1 << STM_RCC_APB2ENR_SPI1EN); ao_spi_channel_init(0); - - stm_nvic_set_enable(STM_ISR_SPI1_POS); - stm_nvic_set_priority(STM_ISR_SPI1_POS, 3); #endif #if HAS_SPI_2 @@ -254,8 +251,5 @@ ao_spi_init(void) stm_rcc.apb1enr |= (1 << STM_RCC_APB1ENR_SPI2EN); ao_spi_channel_init(1); - - stm_nvic_set_enable(STM_ISR_SPI2_POS); - stm_nvic_set_priority(STM_ISR_SPI2_POS, 3); #endif }