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:
patacongo
2009-06-06 14:12:50 +00:00
parent 7384979c33
commit ce84f9db4e
+8
View File
@@ -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