git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3379 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
8dfb19e436
commit
4ffade3153
|
@ -214,12 +214,12 @@ void spi_lld_start(SPIDriver *spip) {
|
|||
#if STM32_SPI_USE_SPI3
|
||||
if (&SPID3 == spip) {
|
||||
bool_t b;
|
||||
b = dmaStreamAllocate(STM32_DMA1_STREAM1,
|
||||
b = dmaStreamAllocate(STM32_DMA2_STREAM1,
|
||||
STM32_SPI_SPI3_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)spi_lld_serve_rx_interrupt,
|
||||
(void *)spip);
|
||||
chDbgAssert(!b, "spi_lld_start(), #5", "stream already allocated");
|
||||
b = dmaStreamAllocate(STM32_DMA1_STREAM2,
|
||||
b = dmaStreamAllocate(STM32_DMA2_STREAM2,
|
||||
STM32_SPI_SPI3_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)spi_lld_serve_tx_interrupt,
|
||||
(void *)spip);
|
||||
|
|
Loading…
Reference in New Issue