Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #21 from PX4/irqprio
Browse files Browse the repository at this point in the history
Add "#ifdef CONFIG_ARCH_IRQPRIO" where needed
  • Loading branch information
LorenzMeier committed Aug 22, 2014
2 parents 088146b + 41fffa0 commit cb86223
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nuttx/arch/arm/src/stm32/stm32_otgfsdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -5435,9 +5435,11 @@ void up_usbinitialize(void)

up_enable_irq(STM32_IRQ_OTGFS);

#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrrupt priority */

up_prioritize_irq(STM32_IRQ_OTGFS, CONFIG_OTGFS_PRI);
#endif
return;

errout:
Expand Down
2 changes: 2 additions & 0 deletions nuttx/arch/arm/src/stm32/stm32_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1664,9 +1664,11 @@ static int stm32_attach(FAR struct sdio_dev_s *dev)

up_enable_irq(STM32_IRQ_SDIO);

#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrrupt priority */

up_prioritize_irq(STM32_IRQ_SDIO, CONFIG_SDIO_PRI);
#endif
}

return ret;
Expand Down
2 changes: 2 additions & 0 deletions nuttx/arch/arm/src/stm32/stm32f10xxx_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,11 @@ void weak_function up_dmainitialize(void)

up_enable_irq(dmach->irq);

#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrrupt priority */

up_prioritize_irq(dmach->irq, CONFIG_DMA_PRI);
#endif
}
}

Expand Down
2 changes: 2 additions & 0 deletions nuttx/arch/arm/src/stm32/stm32f40xxx_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,11 @@ void weak_function up_dmainitialize(void)

up_enable_irq(dmast->irq);

#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrrupt priority */

up_prioritize_irq(dmast->irq, CONFIG_DMA_PRI);
#endif
}
}

Expand Down

0 comments on commit cb86223

Please sign in to comment.