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:
parent
b7c14b44b7
commit
c1cd3b3a42
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user