Pārlūkot izejas kodu

support gpio interrupt

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1540 bbd45198-f89e-11dd-88c7-29a3b14d5316
luohui2320@gmail.com 14 gadi atpakaļ
vecāks
revīzija
21f8faf0f5
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      libcpu/arm/at91sam926x/at91_aic.h

+ 2 - 0
libcpu/arm/at91sam926x/at91_aic.h

@@ -19,6 +19,8 @@
 extern "C" {
 #endif
 
+#define AIC_IRQS	32
+
 #define AT91_AIC_SMR(n)		(AT91_AIC + ((n) * 4))	/* Source Mode Registers 0-31 */
 #define		AT91_AIC_PRIOR		(7 << 0)		/* Priority Level */
 #define		AT91_AIC_SRCTYPE	(3 << 5)		/* Interrupt Source Type */