BUG: mixing else causes bad IRQ settings

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2194 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-10-30 13:51:07 +00:00
parent b7c14b44b7
commit c1cd3b3a42

View File

@ -224,7 +224,7 @@ static int stm32_irqinfo(int irq, uint32 *regaddr, uint32 *bit)
*regaddr = NVIC_IRQ0_31_ENABLE;
*bit = 1 << (irq - STM32_IRQ_INTERRUPTS);
}
if (irq < STM32_IRQ_INTERRUPTS + 64)
else if (irq < STM32_IRQ_INTERRUPTS + 64)
{
*regaddr = NVIC_IRQ32_63_ENABLE;
*bit = 1 << (irq - STM32_IRQ_INTERRUPTS - 32);