Fixed Undefined STM32_IRQ_NIRQS

This commit is contained in:
David Sidrane 2016-06-23 14:37:24 -10:00
parent a31c35bd7b
commit 3e2a620f8c

View File

@ -656,7 +656,7 @@ int up_prioritize_irq(int irq, int priority)
uint32_t regval;
int shift;
DEBUGASSERT(irq >= STM32_IRQ_MEMFAULT && irq < STM32_IRQ_NIRQS &&
DEBUGASSERT(irq >= STM32_IRQ_MEMFAULT && irq < NR_IRQS &&
(unsigned)priority <= NVIC_SYSH_PRIORITY_MIN);
if (irq < STM32_IRQ_FIRST)