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

📄 amisr_hspi.src

📁 Wince4.2 BSP for SH4 engineering development board
💻 SRC
字号:

;
;       Copyright (c) Renesas Technology Corp. 2001-2003  All Rights Reserved.
;
;       OEM Adaptation Layer
;
; ----------------------------------------------------------------------------
;
;   FILE      : AMISR_HSPI.SRC
;   CREATED   : 2001. 7. 5
;   MODIFIED  : 2003.08.06
;   AUTHOR    : Renesas Technology Corp.
;   HARDWARE  : RENESAS US7751-HRP1xC (BigSur with HD64404, ITS-DS2A),
;               RENESAS HS7751RSTC01H (S1-E, ITS-DS5)
;   TARGET OS : Microsoft(R) Windows(R) CE .NET 4.2
;   NOTES     : 
;   FUNCTION  : Interrupt service routine for HD64404 HSPI module
;   HISTORY   :
;               2001. 7. 5
;               - Initially created.
;               2002. 1.10
;               - Device include file is renamed to "HD64404.INC".
;               2002. 5.30
;               - Changed to include platform-independent platform include
;                file "PLATFORM.INC".
;               2002. 9. 9
;               - Header style is changed and file information is added.
;               - Filename is changed to "AMISR_HSPI.SRC".
;				2002. 9.26
;				- Released


    .include "kxshx.h"
    .include "oalintr.inc"
    .include "platform.inc"
    .include "hd64404.inc"

    .import _SPI0_ISR
    .import _SPI1_ISR
	.aif ENABLE_HSPI2 eq h'01
    .import _SPI2_ISR
	.aendi

    LEAF_ENTRY HD64404_HSPI0ISR
    stc.l   gbr, @-r15
    sts.l   macl, @-r15
    sts.l   mach, @-r15
    sts.l   pr, @-r15
    mov.l   r4, @-r15
    mov.l   r5, @-r15
    mov.l   r7, @-r15

    mov.l   #INTPRI_MASK, r1
    mov.l   @r1, r0
    or.l    #h'4, r0
    mov.l   r0, @r1

    mov     #_SPI0_ISR, r1
    jsr     @r1
    nop

    mov.l   #INTPRI_MASK, r1
    mov.l   @r1, r3
    mov.l   #h'4, r2
    not     r2, r2
    and.l   r2, r3
    mov.l   r3, @r1

    mov.l   @r15+, r7
    mov.l   @r15+, r5
    mov.l   @r15+, r4
    lds.l   @r15+, pr
    lds.l   @r15+, mach
    lds.l   @r15+, macl
    ldc.l   @r15+, gbr
    rts
    mov     r0, r0
    ENTRY_END

    LEAF_ENTRY HD64404_HSPI1ISR
    stc.l   gbr, @-r15
    sts.l   macl, @-r15
    sts.l   mach, @-r15
    sts.l   pr, @-r15
    mov.l   r4, @-r15
    mov.l   r5, @-r15
    mov.l   r7, @-r15

    mov.l   #INTPRI_MASK, r1
    mov.l   @r1, r0
    or.l    #h'8, r0
    mov.l   r0, @r1

    mov     #_SPI1_ISR, r1
    jsr     @r1
    nop

    mov.l   #INTPRI_MASK, r1
    mov.l   @r1, r3
    mov.l   #h'8, r2
    not     r2, r2
    and.l   r2, r3
    mov.l   r3, @r1

    mov.l   @r15+, r7
    mov.l   @r15+, r5
    mov.l   @r15+, r4
    lds.l   @r15+, pr
    lds.l   @r15+, mach
    lds.l   @r15+, macl
    ldc.l   @r15+, gbr
    rts
    mov     r0, r0
    ENTRY_END

	.aif ENABLE_HSPI2 eq h'01
    LEAF_ENTRY HD64404_HSPI2ISR
    stc.l   gbr, @-r15
    sts.l   macl, @-r15
    sts.l   mach, @-r15
    sts.l   pr, @-r15
    mov.l   r4, @-r15
    mov.l   r5, @-r15
    mov.l   r7, @-r15

    mov.l   #INTPRI_MASK, r1
    mov.l   @r1, r0
    or.l    #h'10, r0
    mov.l   r0, @r1

    mov     #_SPI2_ISR, r1
    jsr     @r1
    nop

    mov.l   #INTPRI_MASK, r1
    mov.l   @r1, r3
    mov.l   #h'10, r2
    not     r2, r2
    and.l   r2, r3
    mov.l   r3, @r1

    mov.l   @r15+, r7
    mov.l   @r15+, r5
    mov.l   @r15+, r4
    lds.l   @r15+, pr
    lds.l   @r15+, mach
    lds.l   @r15+, macl
    ldc.l   @r15+, gbr
    rts
    mov     r0, r0
    ENTRY_END
	.aendi

    .end

⌨️ 快捷键说明

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