mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 16:50:21 +00:00
arch/arm/src/imxrt/imxrt_irq.c: Fix nxstyle issues
Fix alignment issues Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
This commit is contained in:
parent
ec2faf8dc1
commit
11e2f01296
1 changed files with 14 additions and 14 deletions
|
|
@ -294,55 +294,55 @@ static int imxrt_irqinfo(int irq, uintptr_t *regaddr, uint32_t *bit,
|
|||
{
|
||||
if (extint < 32)
|
||||
{
|
||||
*regaddr = (NVIC_IRQ0_31_ENABLE + offset);
|
||||
*bit = 1 << extint;
|
||||
*regaddr = (NVIC_IRQ0_31_ENABLE + offset);
|
||||
*bit = 1 << extint;
|
||||
}
|
||||
else
|
||||
#if IMXRT_IRQ_NEXTINT > 32
|
||||
if (extint < 64)
|
||||
{
|
||||
*regaddr = (NVIC_IRQ32_63_ENABLE + offset);
|
||||
*bit = 1 << (extint - 32);
|
||||
*regaddr = (NVIC_IRQ32_63_ENABLE + offset);
|
||||
*bit = 1 << (extint - 32);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#if IMXRT_IRQ_NEXTINT > 64
|
||||
if (extint < 96)
|
||||
{
|
||||
*regaddr = (NVIC_IRQ64_95_ENABLE + offset);
|
||||
*bit = 1 << (extint - 64);
|
||||
*regaddr = (NVIC_IRQ64_95_ENABLE + offset);
|
||||
*bit = 1 << (extint - 64);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#if IMXRT_IRQ_NEXTINT > 96
|
||||
if (extint < 128)
|
||||
{
|
||||
*regaddr = (NVIC_IRQ96_127_ENABLE + offset);
|
||||
*bit = 1 << (extint - 96);
|
||||
*regaddr = (NVIC_IRQ96_127_ENABLE + offset);
|
||||
*bit = 1 << (extint - 96);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#if IMXRT_IRQ_NEXTINT > 128
|
||||
if (extint < 160)
|
||||
{
|
||||
*regaddr = (NVIC_IRQ128_159_ENABLE + offset);
|
||||
*bit = 1 << (extint - 128);
|
||||
*regaddr = (NVIC_IRQ128_159_ENABLE + offset);
|
||||
*bit = 1 << (extint - 128);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#if IMXRT_IRQ_NEXTINT > 160
|
||||
if (extint < 192)
|
||||
{
|
||||
*regaddr = (NVIC_IRQ160_191_ENABLE + offset);
|
||||
*bit = 1 << (extint - 160);
|
||||
*regaddr = (NVIC_IRQ160_191_ENABLE + offset);
|
||||
*bit = 1 << (extint - 160);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#if IMXRT_IRQ_NEXTINT > 192
|
||||
if (extint < 219)
|
||||
{
|
||||
*regaddr = (NVIC_IRQ192_223_ENABLE + offset);
|
||||
*bit = 1 << (extint - 192);
|
||||
*regaddr = (NVIC_IRQ192_223_ENABLE + offset);
|
||||
*bit = 1 << (extint - 192);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue