mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
Fix the PIOS_OVERO dma IRQ configuration
This commit is contained in:
parent
337f0e8bfa
commit
88bb73f508
@ -455,8 +455,7 @@ void PIOS_SPI_flash_irq_handler(void)
|
|||||||
*/
|
*/
|
||||||
#include <pios_overo_priv.h>
|
#include <pios_overo_priv.h>
|
||||||
void PIOS_OVERO_irq_handler(void);
|
void PIOS_OVERO_irq_handler(void);
|
||||||
void DMA1_Streamr0_IRQHandler(void) __attribute__((alias("PIOS_OVERO_irq_handler")));
|
void DMA1_Stream7_IRQHandler(void) __attribute__((alias("PIOS_OVERO_irq_handler")));
|
||||||
void DMA1_Streamr7_IRQHandler(void) __attribute__((alias("PIOS_OVERO_irq_handler")));
|
|
||||||
static const struct pios_overo_cfg pios_overo_cfg = {
|
static const struct pios_overo_cfg pios_overo_cfg = {
|
||||||
.regs = SPI3,
|
.regs = SPI3,
|
||||||
.remap = GPIO_AF_SPI3,
|
.remap = GPIO_AF_SPI3,
|
||||||
@ -475,7 +474,7 @@ static const struct pios_overo_cfg pios_overo_cfg = {
|
|||||||
.dma = {
|
.dma = {
|
||||||
.irq = {
|
.irq = {
|
||||||
// Note this is the stream ID that triggers interrupts (in this case TX)
|
// Note this is the stream ID that triggers interrupts (in this case TX)
|
||||||
.flags = (DMA_IT_TCIF0 | DMA_IT_TEIF0 | DMA_IT_TCIF7 | DMA_IT_TEIF7), //DMA_IT_HTIF7),
|
.flags = (DMA_IT_TCIF7),
|
||||||
.init = {
|
.init = {
|
||||||
.NVIC_IRQChannel = DMA1_Stream7_IRQn,
|
.NVIC_IRQChannel = DMA1_Stream7_IRQn,
|
||||||
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_HIGH,
|
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_HIGH,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user