diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-25 16:23:00 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-25 16:23:00 -0600 |
commit | ec8c32f99f5639dbd7b58a03cc4be561d61d1a1a (patch) | |
tree | 6500278b095c608c0b129ccccab56745450f9d56 /nuttx/arch/arm/src/stm32/stm32_otgfsdev.c | |
parent | 7c5259bbc1226e5a62974854a8e225962950dfe3 (diff) | |
download | px4-nuttx-ec8c32f99f5639dbd7b58a03cc4be561d61d1a1a.tar.gz px4-nuttx-ec8c32f99f5639dbd7b58a03cc4be561d61d1a1a.tar.bz2 px4-nuttx-ec8c32f99f5639dbd7b58a03cc4be561d61d1a1a.zip |
Sourceforge ticket #26: STM32 up_prioritize_irq should not be called if CONFIG_ARCH_IRQPRIO is not defined
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_otgfsdev.c')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_otgfsdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_otgfsdev.c b/nuttx/arch/arm/src/stm32/stm32_otgfsdev.c index e9cf95a63..ca6fddbb6 100644 --- a/nuttx/arch/arm/src/stm32/stm32_otgfsdev.c +++ b/nuttx/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: |