altos: STM SPI is not using interrupts itself
authorKeith Packard <keithp@keithp.com>
Sun, 8 Apr 2012 01:54:32 +0000 (18:54 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 8 Apr 2012 01:54:32 +0000 (18:54 -0700)
All SPI transfers are done via DMA, so the DMA interrupts suffice.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_spi_stm.c

index 92747d87c94bca49f9403704ce19050d4ff28586..ecf7934f1f43b6a7df8e6d9035a2be4ef802659a 100644 (file)
@@ -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
 }