mirror of
https://github.com/apache/nuttx.git
synced 2026-08-26 20:00:42 +00:00
Sourceforge ticket #26: STM32 up_prioritize_irq should not be called if CONFIG_ARCH_IRQPRIO is not defined
This commit is contained in:
parent
3a2b1b0060
commit
1745e978fb
1 changed files with 3 additions and 1 deletions
|
|
@ -5459,9 +5459,11 @@ void up_usbinitialize(void)
|
|||
|
||||
up_enable_irq(STM32_IRQ_OTGFS);
|
||||
|
||||
/* Set the interrrupt priority */
|
||||
#ifdef CONFIG_ARCH_IRQPRIO
|
||||
/* Set the interrupt priority */
|
||||
|
||||
up_prioritize_irq(STM32_IRQ_OTGFS, CONFIG_OTGFS_PRI);
|
||||
#endif
|
||||
return;
|
||||
|
||||
errout:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue