diff --git a/ChangeLog b/ChangeLog index ec190bb2e3..a3d3c8dd7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7251,4 +7251,7 @@ * arch/z16/src/z16f_timerisr.c: Fix calculation of timer reload and prescaler. The timer frequency was way too fast (2014-4-25). + * arch/arm/src/stm32/stm32_otgfsdev.c: Sourceforge Ticket #26. + up_prioritize_irq should not be called if CONFIG_ARCH_IRQPRIO + is not defined (2014-4-25). diff --git a/arch/arm/src/stm32/stm32_otgfsdev.c b/arch/arm/src/stm32/stm32_otgfsdev.c index e9cf95a635..ca6fddbb6d 100644 --- a/arch/arm/src/stm32/stm32_otgfsdev.c +++ b/arch/arm/src/stm32/stm32_otgfsdev.c @@ -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: