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

📄 int.txt

📁 SMDK2442所有设备的驱动测试程序。运行monitor程序
💻 TXT
📖 第 1 页 / 共 2 页
字号:
0002bc  aa000008          BGE      |L1.740|
;;;125        {
;;;126            if((fiqCnt1%100)==0)   
0002c0  e59f0064          LDR      r0,|L1.812|
0002c4  e5901000          LDR      r1,[r0,#0]  ; fiqCnt1
0002c8  e3a00064          MOV      r0,#0x64
0002cc  ebfffffe          BL       __rt_sdiv
0002d0  e3510000          CMP      r1,#0
0002d4  1a000001          BNE      |L1.736|
;;;127               Uart_Printf(".");
0002d8  e28f00a0          ADR      r0,|L1.896|
0002dc  ebfffffe          BL       Uart_Printf
;;;128        }
                  |L1.736|
0002e0  eafffff1          B        |L1.684|
;;;129        rTCON = 0x0;        //One-shot, Inverter off, No operation, Dead zone disable, Stop
                  |L1.740|
0002e4  e3a00000          MOV      r0,#0
0002e8  e3a01451          MOV      r1,#0x51000000
0002ec  e5810008          STR      r0,[r1,#8]
;;;130        Delay(1);
0002f0  e3a00001          MOV      r0,#1
0002f4  ebfffffe          BL       Delay
;;;131        Uart_Printf("\nfiqCnt0 = %d, fiqCnt1 = %d (10000,10000)\n",fiqCnt0,fiqCnt1);
0002f8  e59f002c          LDR      r0,|L1.812|
0002fc  e5902000          LDR      r2,[r0,#0]  ; fiqCnt1
000300  e59f0020          LDR      r0,|L1.808|
000304  e5901000          LDR      r1,[r0,#0]  ; fiqCnt0
000308  e28f0074          ADR      r0,|L1.900|
00030c  ebfffffe          BL       Uart_Printf
;;;132        rINTMOD = intmod;
000310  e3a0044a          MOV      r0,#0x4a000000
000314  e5804004          STR      r4,[r0,#4]
;;;133        rINTMSK = BIT_ALLMSK;
000318  e3e00000          MVN      r0,#0
00031c  e3a0144a          MOV      r1,#0x4a000000
000320  e5810008          STR      r0,[r1,#8]
;;;134    }
000324  e8bd8010          LDMFD    sp!,{r4,pc}
                  |L1.808|
000328  00000000          DCD      ||.bss$2||
                  |L1.812|
00032c  00000004          DCD      ||.bss$2|| + 4
                  |L1.816|
000330  4946205b          DCB      "[ FI"
000334  6e492051          DCB      "Q In"
000338  72726574          DCB      "terr"
00033c  20747075          DCB      "upt "
000340  74736554          DCB      "Test"
000344  000a5d20          DCB      " ]\n\0"
                  |L1.840|
000348  6553205b          DCB      "[ Se"
00034c  69542074          DCB      "t Ti"
000350  3072656d          DCB      "mer0"
000354  74697720          DCB      " wit"
000358  49462068          DCB      "h FI"
00035c  6e492051          DCB      "Q In"
000360  72726574          DCB      "terr"
000364  20747075          DCB      "upt "
000368  00000a5d          DCB      "]\n\0\0"
                  |L1.876|
00036c  00000000          DCD      T0Int
                  |L1.880|
000370  31fff000          DCD      0x31fff000
                  |L1.884|
000374  00000000          DCD      T1Int
                  |L1.888|
000378  00000a0a          DCD      0x00000a0a
                  |L1.892|
00037c  00000909          DCD      0x00000909
                  |L1.896|
000380  0000002e          DCB      ".\0\0\0"
                  |L1.900|
000384  7169660a          DCB      "\nfiq"
000388  30746e43          DCB      "Cnt0"
00038c  25203d20          DCB      " = %"
000390  66202c64          DCB      "d, f"
000394  6e437169          DCB      "iqCn"
000398  3d203174          DCB      "t1 ="
00039c  20642520          DCB      " %d "
0003a0  30303128          DCB      "(100"
0003a4  312c3030          DCB      "00,1"
0003a8  30303030          DCB      "0000"
0003ac  00000a29          DCB      ")\n\0\0"
                          ENDP

                  Change_IntPriorities PROC
;;;137    void Change_IntPriorities(void)
;;;138    {
0003b0  e92d4010          STMFD    sp!,{r4,lr}
;;;139        int key;
;;;140    
;;;141    //    rINTMOD = 0x0;
;;;142    //    rINTMSK = ~(BIT_ALLMSK);
;;;143    //    rINTSUBMSK = ~(BIT_SUB_ALLMSK);
;;;144        
;;;145        Uart_Printf("[ Interrupt Controller Priority Policy ]\n\n");
0003b4  e28f009c          ADR      r0,|L1.1112|
0003b8  ebfffffe          BL       Uart_Printf
;;;146        Uart_Printf("1. Reverse Priority   2. Priority Rotate Off   3. Default\n\n");
0003bc  e28f00c0          ADR      r0,|L1.1156|
0003c0  ebfffffe          BL       Uart_Printf
;;;147        Uart_Printf("Select : ");
0003c4  e28f00f4          ADR      r0,|L1.1216|
0003c8  ebfffffe          BL       Uart_Printf
;;;148        key = Uart_Getch();
0003cc  ebfffffe          BL       Uart_Getch
0003d0  e1a04000          MOV      r4,r0
;;;149        Uart_Printf("%c\n\n",key);    
0003d4  e1a01004          MOV      r1,r4
0003d8  e28f00ec          ADR      r0,|L1.1228|
0003dc  ebfffffe          BL       Uart_Printf
;;;150        
;;;151        switch(key)
0003e0  e3540031          CMP      r4,#0x31
0003e4  0a000004          BEQ      |L1.1020|
0003e8  e3540032          CMP      r4,#0x32
0003ec  0a00000b          BEQ      |L1.1056|
0003f0  e3540033          CMP      r4,#0x33
0003f4  1a000015          BNE      |L1.1104|
0003f8  ea00000e          B        |L1.1080|
;;;152        {
;;;153           case '1':
;;;154              Uart_Printf("Reverse priority is selected.\n");
                  |L1.1020|
0003fc  e28f00d0          ADR      r0,|L1.1236|
000400  ebfffffe          BL       Uart_Printf
;;;155              rPRIORITY = 0x7f;             //Arbiter 0 to 6 group priority rotate enable
000404  e3a0007f          MOV      r0,#0x7f
000408  e3a0144a          MOV      r1,#0x4a000000
00040c  e581000c          STR      r0,[r1,#0xc]
;;;156              rPRIORITY = (0x3fff<<7);      //Arbiter 0 and 5 are group priority order set.(REQ 4-1-2-3)
000410  e59f00dc          LDR      r0,|L1.1268|
000414  e3a0144a          MOV      r1,#0x4a000000
000418  e581000c          STR      r0,[r1,#0xc]
;;;157                                            //Arbiter 1 to 4 and 6 are group priority order set.(REQ 0-4-1-2-3-5)
;;;158              break;
00041c  ea00000c          B        |L1.1108|
;;;159           case '2':
;;;160              Uart_Printf("Priority rotate off is selected.\n");
                  |L1.1056|
000420  e28f00d0          ADR      r0,|L1.1272|
000424  ebfffffe          BL       Uart_Printf
;;;161              rPRIORITY = 0x0;              //Arbiter 0 to 6 group priority does not rotate
000428  e3a00000          MOV      r0,#0
00042c  e3a0144a          MOV      r1,#0x4a000000
000430  e581000c          STR      r0,[r1,#0xc]
;;;162              break;
000434  ea000006          B        |L1.1108|
;;;163           case '3':
;;;164              Uart_Printf("Default mode is selected.\n");
                  |L1.1080|
000438  e28f00dc          ADR      r0,|L1.1308|
00043c  ebfffffe          BL       Uart_Printf
;;;165              rPRIORITY = 0x7f;             //Arbiter 0 to 6 group priority rotate enable
000440  e3a0007f          MOV      r0,#0x7f
000444  e3a0144a          MOV      r1,#0x4a000000
000448  e581000c          STR      r0,[r1,#0xc]
;;;166              break;
00044c  ea000000          B        |L1.1108|
;;;167           default:
;;;168              break;
                  |L1.1104|
000450  e1a00000          NOP      
;;;169        }
;;;170        
;;;171    //    rINTMSK = BIT_ALLMSK;
;;;172    //    rINTSUBMSK = BIT_SUB_ALLMSK;    
;;;173    }
                  |L1.1108|
000454  e8bd8010          LDMFD    sp!,{r4,pc}
                  |L1.1112|
000458  6e49205b          DCB      "[ In"
00045c  72726574          DCB      "terr"
000460  20747075          DCB      "upt "
000464  746e6f43          DCB      "Cont"
000468  6c6c6f72          DCB      "roll"
00046c  50207265          DCB      "er P"
000470  726f6972          DCB      "rior"
000474  20797469          DCB      "ity "
000478  696c6f50          DCB      "Poli"
00047c  5d207963          DCB      "cy ]"
000480  00000a0a          DCB      "\n\n\0\0"
                  |L1.1156|
000484  52202e31          DCB      "1. R"
000488  72657665          DCB      "ever"
00048c  50206573          DCB      "se P"
000490  726f6972          DCB      "rior"
000494  20797469          DCB      "ity "
000498  2e322020          DCB      "  2."
00049c  69725020          DCB      " Pri"
0004a0  7469726f          DCB      "orit"
0004a4  6f522079          DCB      "y Ro"
0004a8  65746174          DCB      "tate"
0004ac  66664f20          DCB      " Off"
0004b0  33202020          DCB      "   3"
0004b4  6544202e          DCB      ". De"
0004b8  6c756166          DCB      "faul"
0004bc  000a0a74          DCB      "t\n\n\0"
                  |L1.1216|
0004c0  656c6553          DCB      "Sele"
0004c4  3a207463          DCB      "ct :"
0004c8  00000020          DCB      " \0\0\0"
                  |L1.1228|
0004cc  0a0a6325          DCB      "%c\n\n"
0004d0  00000000          DCB      "\0\0\0\0"
                  |L1.1236|
0004d4  65766552          DCB      "Reve"
0004d8  20657372          DCB      "rse "
0004dc  6f697270          DCB      "prio"
0004e0  79746972          DCB      "rity"
0004e4  20736920          DCB      " is "
0004e8  656c6573          DCB      "sele"
0004ec  64657463          DCB      "cted"
0004f0  00000a2e          DCB      ".\n\0\0"
                  |L1.1268|
0004f4  001fff80          DCD      0x001fff80
                  |L1.1272|
0004f8  6f697250          DCB      "Prio"
0004fc  79746972          DCB      "rity"
000500  746f7220          DCB      " rot"
000504  20657461          DCB      "ate "
000508  2066666f          DCB      "off "
00050c  73207369          DCB      "is s"
000510  63656c65          DCB      "elec"
000514  2e646574          DCB      "ted."
000518  0000000a          DCB      "\n\0\0\0"
                  |L1.1308|
00051c  61666544          DCB      "Defa"
000520  20746c75          DCB      "ult "
000524  65646f6d          DCB      "mode"
000528  20736920          DCB      " is "
00052c  656c6573          DCB      "sele"
000530  64657463          DCB      "cted"
000534  00000a2e          DCB      ".\n\0\0"
                          ENDP



                          AREA ||.data||, DATA, ALIGN=2

                  ||.data$0||
                  func_int_test
                          DCD      Test_Eint
                          DCD      ||.constdata$1||
                          DCD      Test_Fiq
                          DCD      ||.constdata$1||+0x11
                          DCD      Change_IntPriorities
                          DCD      ||.constdata$1||+0x22
                          DCD      Test_SwiIrq
                          DCD      ||.constdata$1||+0x33
                          DCD      0x00000000
                          DCD      0x00000000


                          AREA ||.constdata||, DATA, READONLY, ALIGN=0

                  ||.constdata$1||
                          DCB      0x45,0x78,0x74,0x65
                          DCB      0x72,0x6e,0x61,0x6c
                          DCB      0x20,0x49,0x4e,0x54
                          DCB      0x20,0x20,0x20,0x20
                          DCB      0x00
                          DCB      0x46,0x49,0x51,0x20
                          DCB      0x74,0x65,0x73,0x74
                          DCB      0x20,0x20,0x20,0x20
                          DCB      0x20,0x20,0x20,0x20
                          DCB      0x00
                          DCB      0x43,0x68,0x61,0x6e
                          DCB      0x67,0x65,0x20,0x70
                          DCB      0x72,0x69,0x6f,0x72
                          DCB      0x69,0x74,0x79,0x20
                          DCB      0x00
                          DCB      0x53,0x57,0x49,0x20
                          DCB      0x49,0x72,0x71,0x20
                          DCB      0x20,0x20,0x20,0x20
                          DCB      0x20,0x20,0x20,0x20
                          DCB      0x00


                          AREA ||.bss||, NOINIT, ALIGN=2

                  fiqCnt0
                  ||.bss$2||
                          % 4
                  fiqCnt1
                          % 4


        END

⌨️ 快捷键说明

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