mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-06 21:54:15 +01:00
Fix nasty bug in the DMA stream configuration
This commit is contained in:
parent
95abb56d5e
commit
88b9f20cda
@ -343,7 +343,7 @@ static const struct pios_spi_cfg pios_spi_flash_cfg = {
|
|||||||
.dma = {
|
.dma = {
|
||||||
.irq = {
|
.irq = {
|
||||||
// Note this is the stream ID that triggers interrupts (in this case RX)
|
// Note this is the stream ID that triggers interrupts (in this case RX)
|
||||||
.flags = (DMA_IT_TCIF3 | DMA_IT_TEIF3 | DMA_IT_HTIF3),
|
.flags = (DMA_IT_TCIF0 | DMA_IT_TEIF0 | DMA_IT_HTIF0),
|
||||||
.init = {
|
.init = {
|
||||||
.NVIC_IRQChannel = DMA1_Stream0_IRQn,
|
.NVIC_IRQChannel = DMA1_Stream0_IRQn,
|
||||||
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_HIGH,
|
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_HIGH,
|
||||||
@ -466,7 +466,7 @@ static const struct pios_spi_cfg pios_spi_overo_cfg = {
|
|||||||
.dma = {
|
.dma = {
|
||||||
.irq = {
|
.irq = {
|
||||||
// Note this is the stream ID that triggers interrupts (in this case RX)
|
// Note this is the stream ID that triggers interrupts (in this case RX)
|
||||||
.flags = (DMA_IT_TCIF3 | DMA_IT_TEIF3 | DMA_IT_HTIF3 | DMA_IT_DMEIF3 | DMA_IT_FEIF3),
|
.flags = (DMA_IT_TCIF0 | DMA_IT_TEIF0 | DMA_IT_HTIF0),
|
||||||
.init = {
|
.init = {
|
||||||
.NVIC_IRQChannel = DMA1_Stream0_IRQn,
|
.NVIC_IRQChannel = DMA1_Stream0_IRQn,
|
||||||
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_HIGH,
|
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_HIGH,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user