📄 int.txt
字号:
000210 20747075 DCB "upt "
000214 74736554 DCB "Test"
000218 000a5d20 DCB " ]\n\0"
|L1.540|
00021c 00000000 DCD T0Int
|L1.544|
000220 13fff000 DCD 0x13fff000
|L1.548|
000224 00000000 DCD T1Int
|L1.552|
000228 00000a0a DCD 0x00000a0a
|L1.556|
00022c 00000909 DCD 0x00000909
|L1.560|
000230 0000002e DCB ".\0\0\0"
|L1.564|
000234 7169660a DCB "\nfiq"
000238 30746e43 DCB "Cnt0"
00023c 25203d20 DCB " = %"
000240 66202c64 DCB "d, f"
000244 6e437169 DCB "iqCn"
000248 3d203174 DCB "t1 ="
00024c 20642520 DCB " %d "
000250 30303128 DCB "(100"
000254 312c3030 DCB "00,1"
000258 30303030 DCB "0000"
00025c 00000a29 DCB ")\n\0\0"
ENDP
Change_IntPriorities PROC
;;;72 void Change_IntPriorities(void)
;;;73 {
000260 e92d4010 STMFD sp!,{r4,lr}
;;;74 int key;
;;;75
;;;76
;;;77 Uart_Printf("[ Interrupt Controller Priority Policy ]\n\n");
000264 e28f00d8 ADR r0,|L1.836|
000268 ebfffffe BL _printf
;;;78 Uart_Printf("1. Reverse Priority 2. Priority Rotate Off 3. Default\n\n");
00026c e28f00fc ADR r0,|L1.880|
000270 ebfffffe BL _printf
;;;79 Uart_Printf("Select : ");
000274 e28f0f4c ADR r0,|L1.940|
000278 ebfffffe BL _printf
;;;80 key = Uart_Getch();
00027c ebfffffe BL Uart_Getch
000280 e1a04000 MOV r4,r0
;;;81 Uart_Printf("%c\n\n",key);
000284 e1a01004 MOV r1,r4
000288 e28f0f4a ADR r0,|L1.952|
00028c ebfffffe BL _printf
;;;82
;;;83 switch(key)
000290 e3540031 CMP r4,#0x31
000294 0a000004 BEQ |L1.684|
000298 e3540032 CMP r4,#0x32
00029c 0a000010 BEQ |L1.740|
0002a0 e3540033 CMP r4,#0x33
0002a4 1a000024 BNE |L1.828|
0002a8 ea000018 B |L1.784|
;;;84 {
;;;85 case '1':
;;;86 Uart_Printf("Reverse priority is selected.\n");
|L1.684|
0002ac e28f0f43 ADR r0,|L1.960|
0002b0 ebfffffe BL _printf
;;;87 rPRIORITY = 0x7f; //Arbiter 0 to 6 group priority rotate enable
0002b4 e3a0007f MOV r0,#0x7f
0002b8 e51f10c8 LDR r1,|L1.504|
0002bc e581000c STR r0,[r1,#0xc]
;;;88 rPRIORITY = (0x3fff<<7); //Arbiter 0 and 5 are group priority order set.(REQ 4-1-2-3)
0002c0 e0410be1 SUB r0,r1,r1,ROR #23
0002c4 e1c11000 BIC r1,r1,r0
0002c8 e581000c STR r0,[r1,#0xc]
;;;89 Uart_Printf("rPRIORITY=%x\n",rPRIORITY);//Arbiter 1 to 4 and 6 are group priority order set.(REQ 0-4-1-2-3-5)
0002cc e1c10000 BIC r0,r1,r0
0002d0 e590000c LDR r0,[r0,#0xc]
0002d4 e1a01000 MOV r1,r0
0002d8 e28f0f40 ADR r0,|L1.992|
0002dc ebfffffe BL _printf
;;;90 break;
0002e0 ea000016 B |L1.832|
;;;91 case '2':
;;;92 Uart_Printf("Priority rotate off is selected.\n");
|L1.740|
0002e4 e28f0f41 ADR r0,|L1.1008|
0002e8 ebfffffe BL _printf
;;;93 rPRIORITY = 0x0; //Arbiter 0 to 6 group priority does not rotate
0002ec e3a00000 MOV r0,#0
0002f0 e51f1100 LDR r1,|L1.504|
0002f4 e581000c STR r0,[r1,#0xc]
;;;94 Uart_Printf("rPRIORITY=%x\n",rPRIORITY);
0002f8 e1c10000 BIC r0,r1,r0
0002fc e590000c LDR r0,[r0,#0xc]
000300 e1a01000 MOV r1,r0
000304 e28f00d4 ADR r0,|L1.992|
000308 ebfffffe BL _printf
;;;95 break;
00030c ea00000b B |L1.832|
;;;96 case '3':
;;;97 Uart_Printf("Default mode is selected.\n");
|L1.784|
000310 e28f00fc ADR r0,|L1.1044|
000314 ebfffffe BL _printf
;;;98 rPRIORITY = 0x7f; //Arbiter 0 to 6 group priority rotate enable
000318 e3a0007f MOV r0,#0x7f
00031c e51f112c LDR r1,|L1.504|
000320 e581000c STR r0,[r1,#0xc]
;;;99 Uart_Printf("rPRIORITY=%x\n",rPRIORITY);
000324 e1c10000 BIC r0,r1,r0
000328 e590000c LDR r0,[r0,#0xc]
00032c e1a01000 MOV r1,r0
000330 e28f00a8 ADR r0,|L1.992|
000334 ebfffffe BL _printf
;;;100 break;
000338 ea000000 B |L1.832|
;;;101 default:
;;;102 break;
|L1.828|
00033c e1a00000 NOP
;;;103 }
;;;104 }
|L1.832|
000340 e8bd8010 LDMFD sp!,{r4,pc}
|L1.836|
000344 6e49205b DCB "[ In"
000348 72726574 DCB "terr"
00034c 20747075 DCB "upt "
000350 746e6f43 DCB "Cont"
000354 6c6c6f72 DCB "roll"
000358 50207265 DCB "er P"
00035c 726f6972 DCB "rior"
000360 20797469 DCB "ity "
000364 696c6f50 DCB "Poli"
000368 5d207963 DCB "cy ]"
00036c 00000a0a DCB "\n\n\0\0"
|L1.880|
000370 52202e31 DCB "1. R"
000374 72657665 DCB "ever"
000378 50206573 DCB "se P"
00037c 726f6972 DCB "rior"
000380 20797469 DCB "ity "
000384 2e322020 DCB " 2."
000388 69725020 DCB " Pri"
00038c 7469726f DCB "orit"
000390 6f522079 DCB "y Ro"
000394 65746174 DCB "tate"
000398 66664f20 DCB " Off"
00039c 33202020 DCB " 3"
0003a0 6544202e DCB ". De"
0003a4 6c756166 DCB "faul"
0003a8 000a0a74 DCB "t\n\n\0"
|L1.940|
0003ac 656c6553 DCB "Sele"
0003b0 3a207463 DCB "ct :"
0003b4 00000020 DCB " \0\0\0"
|L1.952|
0003b8 0a0a6325 DCB "%c\n\n"
0003bc 00000000 DCB "\0\0\0\0"
|L1.960|
0003c0 65766552 DCB "Reve"
0003c4 20657372 DCB "rse "
0003c8 6f697270 DCB "prio"
0003cc 79746972 DCB "rity"
0003d0 20736920 DCB " is "
0003d4 656c6573 DCB "sele"
0003d8 64657463 DCB "cted"
0003dc 00000a2e DCB ".\n\0\0"
|L1.992|
0003e0 49525072 DCB "rPRI"
0003e4 5449524f DCB "ORIT"
0003e8 78253d59 DCB "Y=%x"
0003ec 0000000a DCB "\n\0\0\0"
|L1.1008|
0003f0 6f697250 DCB "Prio"
0003f4 79746972 DCB "rity"
0003f8 746f7220 DCB " rot"
0003fc 20657461 DCB "ate "
000400 2066666f DCB "off "
000404 73207369 DCB "is s"
000408 63656c65 DCB "elec"
00040c 2e646574 DCB "ted."
000410 0000000a DCB "\n\0\0\0"
|L1.1044|
000414 61666544 DCB "Defa"
000418 20746c75 DCB "ult "
00041c 65646f6d DCB "mode"
000420 20736920 DCB " is "
000424 656c6573 DCB "sele"
000428 64657463 DCB "cted"
00042c 00000a2e DCB ".\n\0\0"
ENDP
AREA ||.bss||, NOINIT, ALIGN=2
fiqCnt0
||.bss$2||
% 4
fiqCnt1
% 4
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -