原创 可设置个数的SWI_TABLE.S

2006-12-30 02:08 5149 10 10 分类: MCU/ 嵌入式
hotpower 发表于 2006-5-6 13:31 ZLG-ARM ←返回版面 按此察看该网友的资料 按此把文章加入收藏夹 按此编辑本帖

可设置个数的SWI_TABLE.S


;/*----------------------------------------------------------------------------
; *      R T L  -  K e r n e l
; *----------------------------------------------------------------------------
; *      Name:    SWI_TABLE.S
; *      Purpose: Pre-defined SWI Table
; *      Rev.:    V3.00 / 17-mar-2006
; *----------------------------------------------------------------------------
; *      This code is part of the RealView Run-Time Library.
; *      Copyright (c) 2004-2006 KEIL - An ARM Company. All rights reserved.
; *---------------------------------------------------------------------------*/
;ARM水鸟  HotPower@126.com
;2006.5.6 于西安大雁塔村队部

;/*****************************************************************************/
;/* <<< Use Configuration Wizard in Context Menu >>>                          */
;/*****************************************************************************/

                AREA    SWI_TABLE, CODE, READONLY

                EXPORT  SWI_Count

;// 软中断个数设置
;//         请输入实际软中断个数     <0-16:0>
;//
SWI_Cnt         EQU     10;__SWI_8
SWI_Count       DCD     SWI_Cnt
;本版本启动文件暂支持最多16个软中断,其中包含ARTX自带的8个。
                EXPORT  SWI_Table
SWI_Table
                IF      SWI_Cnt > 0
                  IMPORT  __SWI_0;ARTX占用
                  IF      SWI_Cnt > 1
                    IMPORT  __SWI_1;ARTX保留
                    IF      SWI_Cnt > 2
                      IMPORT  __SWI_2;ARTX保留
                      IF      SWI_Cnt > 3
                        IMPORT  __SWI_3;ARTX保留
                        IF      SWI_Cnt > 4
                          IMPORT  __SWI_4;ARTX保留
                          IF      SWI_Cnt > 5
                            IMPORT  __SWI_5;ARTX保留
                            IF      SWI_Cnt > 6
                              IMPORT  __SWI_6;ARTX占用
                              IF      SWI_Cnt > 7
                                IMPORT  __SWI_7;ARTX占用
                                IF      SWI_Cnt > 8
                                  IMPORT  __SWI_8;用户SWI8
                                  IF      SWI_Cnt > 9
                                    IMPORT  __SWI_9;用户SWI9
                                    IF      SWI_Cnt > 10
                                      IMPORT  __SWI_10;用户SWI10
                                      IF      SWI_Cnt > 11
                                        IMPORT  __SWI_11;用户SWI11
                                        IF      SWI_Cnt > 12
                                          IMPORT  __SWI_12;用户SWI12
                                          IF      SWI_Cnt > 13
                                            IMPORT  __SWI_13;用户SWI13
                                            IF      SWI_Cnt > 14
                                              IMPORT  __SWI_14;用户SWI14
                                              IF      SWI_Cnt > 15
                                                IMPORT  __SWI_15;用户SWI15
                                              ENDIF
                                            ENDIF
                                          ENDIF
                                        ENDIF
                                      ENDIF
                                    ENDIF
                                  ENDIF
                                ENDIF
                              ENDIF
                            ENDIF
                          ENDIF
                        ENDIF
                      ENDIF
                    ENDIF
                  ENDIF
                ENDIF
                IF      SWI_Cnt > 0
                  DCD  __SWI_0;ARTX占用
                  IF      SWI_Cnt > 1
                    DCD  __SWI_1;ARTX保留
                    IF      SWI_Cnt > 2
                      DCD  __SWI_2;ARTX保留
                      IF      SWI_Cnt > 3
                        DCD  __SWI_3;ARTX保留
                        IF      SWI_Cnt > 4
                          DCD  __SWI_4;ARTX保留
                          IF      SWI_Cnt > 5
                            DCD  __SWI_5;ARTX保留
                            IF      SWI_Cnt > 6
                              DCD  __SWI_6;ARTX占用
                              IF      SWI_Cnt > 7
                                DCD  __SWI_7;ARTX占用
                                IF      SWI_Cnt > 8
                                  DCD  __SWI_8;用户SWI8
                                  IF      SWI_Cnt > 9
                                    DCD  __SWI_9;用户SWI9
                                    IF      SWI_Cnt > 10
                                      DCD  __SWI_10;用户SWI10
                                      IF      SWI_Cnt > 11
                                        DCD  __SWI_11;用户SWI11
                                        IF      SWI_Cnt > 12
                                          DCD  __SWI_12;用户SWI12
                                          IF      SWI_Cnt > 13
                                            DCD  __SWI_13;用户SWI13
                                            IF      SWI_Cnt > 14
                                              DCD  __SWI_14;用户SWI14
                                              IF      SWI_Cnt > 15
                                                DCD  __SWI_15;用户SWI15
                                              ENDIF
                                            ENDIF
                                          ENDIF
                                        ENDIF
                                      ENDIF
                                    ENDIF
                                  ENDIF
                                ENDIF
                              ENDIF
                            ENDIF
                          ENDIF
                        ENDIF
                      ENDIF
                    ENDIF
                  ENDIF
                ENDIF
SWI_End

                END

/*----------------------------------------------------------------------------
* end of file
*---------------------------------------------------------------------------*/

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
10
关闭 站长推荐上一条 /3 下一条