Skip to content
Snippets Groups Projects
Commit c1cd3b3a authored by patacongo's avatar patacongo
Browse files

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
parent b7c14b44
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment