summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-06-26 15:18:17 +0000
committer[email protected] <[email protected]>2011-06-26 15:18:17 +0000
commit21f8faf0f50f19a500cd1e903ced7702cce9e546 (patch)
tree938fa118744ee5554931f75a0b0b74020a23e056 /libcpu
parent1586a43f6c57432ffe459061eaa28fd091b8052b (diff)
support gpio interrupt
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1540 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu')
-rwxr-xr-xlibcpu/arm/at91sam926x/at91_aic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcpu/arm/at91sam926x/at91_aic.h b/libcpu/arm/at91sam926x/at91_aic.h
index f016231984..6de01c4444 100755
--- a/libcpu/arm/at91sam926x/at91_aic.h
+++ b/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 */