⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aic.inc

📁 ARM入门的好帮手.包含了从简单到相对较复杂的程序.
💻 INC
字号:
;-----------------------------------------------------------------------------
;-      ATMEL Microcontroller Software Support  -   ROUSSET -
;-----------------------------------------------------------------------------
; The software is delivered "AS IS" without warranty or condition of any
; kind, either express, implied or statutory. This includes without
; limitation any warranty or condition with respect to merchantability or
; fitness for any particular purpose, or against the infringements of
; intellectual property rights of others.
;-----------------------------------------------------------------------------
;- File Name            : aic.inc
;- Object               : Advanced Interrupt Controller Definition File.
;- Translator           : ARM Software Development Toolkit V2.11a
;-
;- 1.0 10/03/98 JCZ     : Creation
;- 2.0 21/10/98 JCZ     : Clean up.
;- 2.1 29/01/99 JCZ     : Spurious Vector added
;-                      : 63x00 Definition added
;-----------------------------------------------------------------------------

;-----------------------------------------
;- Advanced Interrupt Controller Structure
;-----------------------------------------
                    ^       0
AIC_SMR             #       32*4        ; Source Mode Register
AIC_SVR             #       32*4        ; Source Vector Register
AIC_IVR             #       4           ; Interrupt Vector Register
AIC_FVR             #       4           ; Fast Interrupt Vector Register
AIC_ISR             #       4           ; Interrupt Status Register
AIC_IPR             #       4           ; Interrupt Pending Register
AIC_IMR             #       4           ; Interrupt Mask Register
AIC_CISR            #       4           ; Core Interrupt Status Register
                    #       4
                    #       4
AIC_IECR            #       4           ; Interrupt Enable Command Register
AIC_IDCR            #       4           ; Interrupt Disable Command Register
AIC_ICCR            #       4           ; Interrupt Clear Command Register
AIC_ISCR            #       4           ; Interrupt Set Command Register
AIC_EOICR           #       4           ; End Of Interrupt Command Register
AIC_SPU             #       4           ; Spurious Vector

;---------------------------------
;- Interrupt Source Mode Registers
;---------------------------------

;- Source Type Definition
SRCTYPE             EQU     0x60
PRIOR               EQU     0x07

;----------------------------
;- Interrupt Status Register
;----------------------------
IRQID               EQU     0x1F

;---------------------------------
;- Interrupt Core Status Register
;---------------------------------
NFIQ                EQU     0x01
NIRQ                EQU     0x02

;--------------------------------
;- Device Dependancies Definition
;--------------------------------

AIC_BASE            EQU     0xFFFFF000

    IF  :DEF:AT91M40400

FIQ                 EQU     0
SWIRQ               EQU     1
US0IRQ              EQU     2
US1IRQ              EQU     3
TC0IRQ              EQU     4
TC1IRQ              EQU     5
TC2IRQ              EQU     6

WDIRQ               EQU     7
PIOIRQ              EQU     8

IRQ0                EQU     16
IRQ1                EQU     17
IRQ2                EQU     18

;- Really implemented in the 40400 not including the FIQ
NB_INTERRUPT        EQU     18

    ENDIF   ; AT91M40400

    IF  :DEF:AT91M63200

FIQ                 EQU     0
SWIRQ               EQU     1
US0IRQ              EQU     2
US1IRQ              EQU     3
US2IRQ              EQU     4
SPIRQ               EQU     5
TC0IRQ              EQU     6
TC1IRQ              EQU     7
TC2IRQ              EQU     8
TC3IRQ              EQU     9
TC4IRQ              EQU     10
TC5IRQ              EQU     11

WDIRQ               EQU     12
PIOAIRQ             EQU     13
PIOBIRQ             EQU     14

IRQ3                EQU     28
IRQ2                EQU     29
IRQ1                EQU     30
IRQ0                EQU     31

;- Really implemented in the 63x00 not including the FIQ
NB_INTERRUPT        EQU     31

    ENDIF   ; AT91M63200

            END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -