📄 sys_init.txt
字号:
0001f4 e5810f1c STR r0,[r1,#0xf1c]
;;;119
;;;120 pISR_EINT0 = (unsigned) break_point;
0001f8 e24f0c02 ADR r0,break_point
0001fc e5810f20 STR r0,[r1,#0xf20]
;;;121 pISR_EINT1 = (unsigned) break_point;
000200 e5810f24 STR r0,[r1,#0xf24]
;;;122 pISR_EINT2 = (unsigned) break_point;
000204 e5810f28 STR r0,[r1,#0xf28]
;;;123 pISR_EINT3 = (unsigned) break_point;
000208 e5810f2c STR r0,[r1,#0xf2c]
;;;124 pISR_EINT4_7 = (unsigned) break_point;
00020c e5810f30 STR r0,[r1,#0xf30]
;;;125 pISR_EINT8_23 = (unsigned) break_point;
000210 e5810f34 STR r0,[r1,#0xf34]
;;;126 pISR_NOTUSED6 = (unsigned) break_point;
000214 e5810f38 STR r0,[r1,#0xf38]
;;;127 pISR_BAT_FLT = (unsigned) break_point;
000218 e5810f3c STR r0,[r1,#0xf3c]
;;;128 pISR_TICK = (unsigned) break_point;
00021c e5810f40 STR r0,[r1,#0xf40]
;;;129 pISR_WDT = (unsigned) break_point;
000220 e5810f44 STR r0,[r1,#0xf44]
;;;130 pISR_TIMER0 = (unsigned) break_point;
000224 e5810f48 STR r0,[r1,#0xf48]
;;;131 pISR_TIMER1 = (unsigned) break_point;
000228 e5810f4c STR r0,[r1,#0xf4c]
;;;132 pISR_TIMER2 = (unsigned) break_point;
00022c e5810f50 STR r0,[r1,#0xf50]
;;;133 pISR_TIMER3 = (unsigned) break_point;
000230 e5810f54 STR r0,[r1,#0xf54]
;;;134 pISR_TIMER4 = (unsigned) break_point;
000234 e5810f58 STR r0,[r1,#0xf58]
;;;135 pISR_UART2 = (unsigned) break_point;
000238 e5810f5c STR r0,[r1,#0xf5c]
;;;136 pISR_LCD = (unsigned) break_point;
00023c e5810f60 STR r0,[r1,#0xf60]
;;;137 pISR_DMA0 = (unsigned) break_point;
000240 e5810f64 STR r0,[r1,#0xf64]
;;;138 pISR_DMA1 = (unsigned) break_point;
000244 e5810f68 STR r0,[r1,#0xf68]
;;;139 pISR_DMA2 = (unsigned) break_point;
000248 e5810f6c STR r0,[r1,#0xf6c]
;;;140 pISR_DMA3 = (unsigned) break_point;
00024c e5810f70 STR r0,[r1,#0xf70]
;;;141 pISR_SDI = (unsigned) break_point;
000250 e5810f74 STR r0,[r1,#0xf74]
;;;142 pISR_SPI0 = (unsigned) break_point;
000254 e5810f78 STR r0,[r1,#0xf78]
;;;143 pISR_UART1 = (unsigned) break_point;
000258 e5810f7c STR r0,[r1,#0xf7c]
;;;144 pISR_NOTUSED24 = (unsigned) break_point;
00025c e5810f80 STR r0,[r1,#0xf80]
;;;145 pISR_USBD = (unsigned) break_point;
000260 e5810f84 STR r0,[r1,#0xf84]
;;;146 pISR_USBH = (unsigned) break_point;
000264 e5810f88 STR r0,[r1,#0xf88]
;;;147 pISR_IIC = (unsigned) break_point;
000268 e5810f8c STR r0,[r1,#0xf8c]
;;;148 pISR_UART0 = (unsigned) break_point;
00026c e5810f90 STR r0,[r1,#0xf90]
;;;149 pISR_SPI1 = (unsigned) break_point;
000270 e5810f94 STR r0,[r1,#0xf94]
;;;150 pISR_RTC = (unsigned) break_point;
000274 e5810f98 STR r0,[r1,#0xf98]
;;;151 pISR_ADC = (unsigned) break_point;
000278 e5810f9c STR r0,[r1,#0xf9c]
;;;152 pISR_ADC = (unsigned) break_point;
00027c e5810f9c STR r0,[r1,#0xf9c]
;;;153
;;;154 }//interrupts_init
000280 e12fff1e BX lr
|L1.644|
000284 21212145 DCB "!!!E"
000288 6e746572 DCB "nter"
00028c 20627265 DCB " bre"
000290 616b2070 DCB "ak p"
000294 6f696e74 DCB "oint"
000298 2e000000 DCB ".\0\0\0"
|L1.668|
00029c 00004e20 DCD 0x00004e20
|L1.672|
0002a0 00000000 DCD nCNT
|L1.676|
0002a4 21212145 DCB "!!!E"
0002a8 6e746572 DCB "nter"
0002ac 20554e44 DCB " UND"
0002b0 4546494e DCB "EFIN"
0002b4 45442065 DCB "ED e"
0002b8 78636570 DCB "xcep"
0002bc 74696f6e DCB "tion"
0002c0 2e202564 DCB ". %d"
0002c4 0d0a0000 DCB "\r\n\0\0"
|L1.712|
0002c8 21212145 DCB "!!!E"
0002cc 6e746572 DCB "nter"
0002d0 20535749 DCB " SWI"
0002d4 20657863 DCB " exc"
0002d8 65707469 DCB "epti"
0002dc 6f6e2e20 DCB "on. "
0002e0 25640d0a DCB "%d\r\n"
0002e4 00000000 DCB "\0\0\0\0"
|L1.744|
0002e8 21212145 DCB "!!!E"
0002ec 6e746572 DCB "nter"
0002f0 20446174 DCB " Dat"
0002f4 61204142 DCB "a AB"
0002f8 4f525420 DCB "ORT "
0002fc 65786365 DCB "exce"
000300 7074696f DCB "ptio"
000304 6e2e2025 DCB "n. %"
000308 640d0a00 DCB "d\r\n\0"
|L1.780|
00030c 21212145 DCB "!!!E"
000310 6e746572 DCB "nter"
000314 20507265 DCB " Pre"
000318 66657463 DCB "fetc"
00031c 68204142 DCB "h AB"
000320 4f525420 DCB "ORT "
000324 65786365 DCB "exce"
000328 7074696f DCB "ptio"
00032c 6e2e2025 DCB "n. %"
000330 640d0a00 DCB "d\r\n\0"
|L1.820|
000334 21212145 DCB "!!!E"
000338 6e746572 DCB "nter"
00033c 20464951 DCB " FIQ"
000340 20657863 DCB " exc"
000344 65707469 DCB "epti"
000348 6f6e2e20 DCB "on. "
00034c 25640d0a DCB "%d\r\n"
000350 00000000 DCB "\0\0\0\0"
|L1.852|
000354 22222222 DCD 0x22222222
|L1.856|
000358 33fff000 DCD 0x33fff000
ENDP
sys_init PROC
;;;164 void sys_init()
;;;165 {
00035c e92d4010 PUSH {r4,lr}
;;;166 //#ifdef DEBUG
;;;167 // MMU_DisableICache();
;;;168 //#else
;;;169 // MMU_EnableICache();
;;;170 //#endif
;;;171 // MMU_EnableDCache();
;;;172 //MMU_DisableDCache();
;;;173
;;;174 change_clock_divider(1,1); // 1:2:4
000360 e3a01001 MOV r1,#1
000364 e1a00001 MOV r0,r1
000368 ebfffffe BL change_clock_divider
;;;175 change_value_MPLL(M_MDIV,M_PDIV,M_SDIV); // Fin=12MHz FCLK=202.8MHz
00036c e3a02001 MOV r2,#1
000370 e3a01003 MOV r1,#3
000374 e3a000a1 MOV r0,#0xa1
000378 ebfffffe BL change_value_MPLL
;;;176 delay(0); // adjust the delay count
00037c e3a00000 MOV r0,#0
000380 ebfffffe BL delay
;;;177 port_init();
000384 ebfffffe BL port_init
;;;178 beep(1);
000388 e3a00001 MOV r0,#1
00038c ebfffffe BL beep
;;;179 interrupts_init();
000390 ebfffffe BL interrupts_init
;;;180 uart_init(PCLK, 115200, UART0);
000394 e3a02000 MOV r2,#0
000398 e59f103c LDR r1,|L1.988|
00039c e59f003c LDR r0,|L1.992|
0003a0 ebfffffe BL uart_init
;;;181 uart_init(PCLK, 115200, UART1);
0003a4 e3a02001 MOV r2,#1
0003a8 e59f102c LDR r1,|L1.988|
0003ac e59f002c LDR r0,|L1.992|
0003b0 ebfffffe BL uart_init
;;;182 #ifdef CLK124_200M
;;;183 change_value_MPLL(88,1,1); // Fin=12MHz FCLK=192MHz
;;;184 uart_init(192000000/4, 115200, UART0);
;;;185 uart_init(192000000/4, 115200, UART1);
;;;186 #endif
;;;187
;;;188 uart_select(UART0);
0003b4 e3a00000 MOV r0,#0
0003b8 ebfffffe BL uart_select
;;;189 uart_printf ("\n boot success...\n\n");
0003bc e28f0020 ADR r0,|L1.996|
0003c0 ebfffffe BL uart_printf
;;;190 delay(500);
0003c4 e3a00f7d MOV r0,#0x1f4
0003c8 ebfffffe BL delay
;;;191 beep(0);
0003cc e3a00000 MOV r0,#0
0003d0 ebfffffe BL beep
;;;192 }//sys_init
0003d4 e8bd4010 POP {r4,lr}
0003d8 e12fff1e BX lr
ENDP
|L1.988|
0003dc 0001c200 DCD 0x0001c200
|L1.992|
0003e0 03059ee0 DCD 0x03059ee0
|L1.996|
0003e4 0a20626f DCB "\n\40\142\157"
0003e8 6f742073 DCB "ot s"
0003ec 75636365 DCB "ucce"
0003f0 73732e2e DCB "ss.."
0003f4 2e0a0a00 DCB ".\n\n\0"
AREA ||.data||, DATA, ALIGN=2
nCNT
000000 00000000 DCD 0x00000000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -