From 1745e978fb41b7929ccce10e5b1378721687dce2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 25 Apr 2014 16:23:00 -0600 Subject: [PATCH] Sourceforge ticket #26: STM32 up_prioritize_irq should not be called if CONFIG_ARCH_IRQPRIO is not defined --- arch/arm/src/stm32/stm32_otgfsdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/stm32_otgfsdev.c b/arch/arm/src/stm32/stm32_otgfsdev.c index e9cf95a635f..ca6fddbb6d4 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: