mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Add logic to avoid spurious interrupts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1857 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -87,6 +87,14 @@ void up_irqinitialize(void)
|
||||
|
||||
putreg32(STR71X_EICICR_IRQEN, STR71X_EIC_ICR);
|
||||
|
||||
/* This shouldn't be necessary, but it appears that something is needed
|
||||
* here to prevent spurious interrupts when the ARM interrupts are enabled
|
||||
* (Needs more investigation).
|
||||
*/
|
||||
|
||||
putreg32(0, STR71X_EIC_IER); /* Make sure that all interrupts are disabled */
|
||||
putreg32(0xffffffff, STR71X_EIC_IPR); /* And that no interrupts are pending */
|
||||
|
||||
/* Enable global ARM interrupts */
|
||||
|
||||
#ifndef CONFIG_SUPPRESS_INTERRUPTS
|
||||
|
||||
Reference in New Issue
Block a user