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

📄 sys_init.txt

📁 矩阵LED ARM S3C2410程序~~C源代码~~
💻 TXT
📖 第 1 页 / 共 2 页
字号:
000208  20627265          DCB      " bre"
00020c  616b2070          DCB      "ak p"
000210  6f696e74          DCB      "oint"
000214  2e000000          DCB      ".\0\0\0"
                  |L1.536|
000218  00000000          DCD      nCNT
                  |L1.540|
00021c  21212145          DCB      "!!!E"
000220  6e746572          DCB      "nter"
000224  20554e44          DCB      " UND"
000228  4546494e          DCB      "EFIN"
00022c  45442065          DCB      "ED e"
000230  78636570          DCB      "xcep"
000234  74696f6e          DCB      "tion"
000238  2e202564          DCB      ". %d"
00023c  0d0a0000          DCB      "\r\n\0\0"
                  |L1.576|
000240  21212145          DCB      "!!!E"
000244  6e746572          DCB      "nter"
000248  20535749          DCB      " SWI"
00024c  20657863          DCB      " exc"
000250  65707469          DCB      "epti"
000254  6f6e2e20          DCB      "on. "
000258  25640d0a          DCB      "%d\r\n"
00025c  00000000          DCB      "\0\0\0\0"
                  |L1.608|
000260  21212145          DCB      "!!!E"
000264  6e746572          DCB      "nter"
000268  20446174          DCB      " Dat"
00026c  61204142          DCB      "a AB"
000270  4f525420          DCB      "ORT "
000274  65786365          DCB      "exce"
000278  7074696f          DCB      "ptio"
00027c  6e2e2025          DCB      "n. %"
000280  640d0a00          DCB      "d\r\n\0"
                  |L1.644|
000284  21212145          DCB      "!!!E"
000288  6e746572          DCB      "nter"
00028c  20507265          DCB      " Pre"
000290  66657463          DCB      "fetc"
000294  68204142          DCB      "h AB"
000298  4f525420          DCB      "ORT "
00029c  65786365          DCB      "exce"
0002a0  7074696f          DCB      "ptio"
0002a4  6e2e2025          DCB      "n. %"
0002a8  640d0a00          DCB      "d\r\n\0"
                  |L1.684|
0002ac  21212145          DCB      "!!!E"
0002b0  6e746572          DCB      "nter"
0002b4  20464951          DCB      " FIQ"
0002b8  20657863          DCB      " exc"
0002bc  65707469          DCB      "epti"
0002c0  6f6e2e20          DCB      "on. "
0002c4  25640d0a          DCB      "%d\r\n"
0002c8  00000000          DCB      "\0\0\0\0"
                  |L1.716|
0002cc  22222222          DCD      0x22222222
                  |L1.720|
0002d0  33fff000          DCD      0x33fff000
                          ENDP

                  beep_init PROC
;;;243    {
;;;244    	if (status)
0002d4  e3500000          CMP      r0,#0
0002d8  0a000005          BEQ      |L1.756|
;;;245    		rCPLDBEEPADDR &= ~(1<<7);
0002dc  e59f10e0          LDR      r1,|L1.964|
0002e0  e5d11000          LDRB     r1,[r1,#0]
0002e4  e3c11080          BIC      r1,r1,#0x80
0002e8  e59f20d4          LDR      r2,|L1.964|
0002ec  e5c21000          STRB     r1,[r2,#0]
0002f0  ea000004          B        |L1.776|
                  |L1.756|
;;;246    	else
;;;247    		rCPLDBEEPADDR |= (1<<7);
0002f4  e59f10c8          LDR      r1,|L1.964|
0002f8  e5d11000          LDRB     r1,[r1,#0]
0002fc  e3811080          ORR      r1,r1,#0x80
000300  e59f20bc          LDR      r2,|L1.964|
000304  e5c21000          STRB     r1,[r2,#0]
                  |L1.776|
;;;248    }
000308  e12fff1e          BX       lr
                          ENDP

                  print_infor PROC
;;;225    void print_infor(void)
;;;226    {
00030c  e92d4010          PUSH     {r4,lr}
;;;227    	uart_printf("\n\n\n\n");
000310  e28f00b0          ADR      r0,|L1.968|
000314  ebfffffe          BL       uart_printf
;;;228    	uart_printf(" *******************************************************************\n");
000318  e59f00b0          LDR      r0,|L1.976|
00031c  ebfffffe          BL       uart_printf
;;;229    	uart_printf(" **             英蓓特EduKit系列嵌入式教学系统平台                **\n");
000320  e59f00ac          LDR      r0,|L1.980|
000324  ebfffffe          BL       uart_printf
;;;230    	uart_printf(" **        Embest EduKit Series Embedded Teaching Platform        **\n");
000328  e59f00a8          LDR      r0,|L1.984|
00032c  ebfffffe          BL       uart_printf
;;;231    	uart_printf(" *******************************************************************\n");
000330  e59f0098          LDR      r0,|L1.976|
000334  ebfffffe          BL       uart_printf
;;;232    }
000338  e8bd4010          POP      {r4,lr}
00033c  e12fff1e          BX       lr
;;;233    
                          ENDP

                  sys_init PROC
;;;195    void sys_init()
;;;196    {
000340  e92d4010          PUSH     {r4,lr}
;;;197    	change_clock_divider(1,1);					// 1:2:4
000344  e3a01001          MOV      r1,#1
000348  e1a00001          MOV      r0,r1
00034c  ebfffffe          BL       change_clock_divider
;;;198    	change_value_MPLL(M_MDIV, M_PDIV, M_SDIV);	// Fin=12MHz FCLK=202.8MHz
000350  e3a02001          MOV      r2,#1
000354  e3a01003          MOV      r1,#3
000358  e3a000a1          MOV      r0,#0xa1
00035c  ebfffffe          BL       change_value_MPLL
;;;199    	delay(0);									// adjust the delay count
000360  e3a00000          MOV      r0,#0
000364  ebfffffe          BL       delay
;;;200    	port_init();
000368  ebfffffe          BL       port_init
;;;201    	interrupts_init();
00036c  ebfffffe          BL       interrupts_init
;;;202    	uart_init(PCLK, 115200, UART0);
000370  e3a02000          MOV      r2,#0
000374  e59f1060          LDR      r1,|L1.988|
000378  e59f0060          LDR      r0,|L1.992|
00037c  ebfffffe          BL       uart_init
;;;203    	uart_init(PCLK, 115200, UART1);
000380  e3a02001          MOV      r2,#1
000384  e59f1050          LDR      r1,|L1.988|
000388  e59f0050          LDR      r0,|L1.992|
00038c  ebfffffe          BL       uart_init
;;;204    	uart_init(PCLK, 115200, UART2);
000390  e3a020bb          MOV      r2,#0xbb
000394  e59f1040          LDR      r1,|L1.988|
000398  e59f0040          LDR      r0,|L1.992|
00039c  ebfffffe          BL       uart_init
;;;205    #ifdef CLK124_200M
;;;206    	change_value_MPLL(88,1,1);					// Fin=12MHz FCLK=192MHz
;;;207    	uart_init(192000000/4, 115200, UART0);
;;;208    	uart_init(192000000/4, 115200, UART1);
;;;209    #endif	
;;;210    	uart_select(UART1);
0003a0  e3a00001          MOV      r0,#1
0003a4  ebfffffe          BL       uart_select
;;;211    	print_infor();
0003a8  ebfffffe          BL       print_infor
;;;212    	beep_init(0);
0003ac  e3a00000          MOV      r0,#0
0003b0  ebfffffe          BL       beep_init
;;;213    	delay(500);
0003b4  e3a00f7d          MOV      r0,#0x1f4
0003b8  ebfffffe          BL       delay
;;;214    }
0003bc  e8bd4010          POP      {r4,lr}
0003c0  e12fff1e          BX       lr
;;;215    
                          ENDP

                  |L1.964|
0003c4  21180000          DCD      0x21180000
                  |L1.968|
0003c8  0a0a0a0a          DCB      "\n\n\n\n"
0003cc  00000000          DCB      "\0\0\0\0"
                  |L1.976|
0003d0  00000000          DCD      ||.constdata||
                  |L1.980|
0003d4  00000048          DCD      ||.constdata||+0x48
                  |L1.984|
0003d8  00000090          DCD      ||.constdata||+0x90
                  |L1.988|
0003dc  0001c200          DCD      0x0001c200
                  |L1.992|
0003e0  03059ee0          DCD      0x03059ee0

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

                  nCNT
000000  00000000          DCD      0x00000000

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

000000  202a2a2a          DCB      0x20,0x2a,0x2a,0x2a
000004  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000008  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
00000c  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000010  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000014  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000018  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
00001c  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000020  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000024  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000028  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
00002c  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000030  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000034  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000038  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
00003c  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000040  2a2a2a2a          DCB      0x2a,0x2a,0x2a,0x2a
000044  0a000000          DCB      0x0a,0x00,0x00,0x00
000048  202a2a20          DCB      0x20,0x2a,0x2a,0x20
00004c  20202020          DCB      0x20,0x20,0x20,0x20
000050  20202020          DCB      0x20,0x20,0x20,0x20
000054  20202020          DCB      0x20,0x20,0x20,0x20
000058  d3a2dded          DCB      0xd3,0xa2,0xdd,0xed
00005c  ccd84564          DCB      0xcc,0xd8,0x45,0x64
000060  754b6974          DCB      0x75,0x4b,0x69,0x74
000064  cfb5c1d0          DCB      0xcf,0xb5,0xc1,0xd0
000068  c7b6c8eb          DCB      0xc7,0xb6,0xc8,0xeb
00006c  cabdbdcc          DCB      0xca,0xbd,0xbd,0xcc
000070  d1a7cfb5          DCB      0xd1,0xa7,0xcf,0xb5
000074  cdb3c6bd          DCB      0xcd,0xb3,0xc6,0xbd
000078  cca82020          DCB      0xcc,0xa8,0x20,0x20
00007c  20202020          DCB      0x20,0x20,0x20,0x20
000080  20202020          DCB      0x20,0x20,0x20,0x20
000084  20202020          DCB      0x20,0x20,0x20,0x20
000088  20202a2a          DCB      0x20,0x20,0x2a,0x2a
00008c  0a000000          DCB      0x0a,0x00,0x00,0x00
000090  202a2a20          DCB      0x20,0x2a,0x2a,0x20
000094  20202020          DCB      0x20,0x20,0x20,0x20
000098  20202045          DCB      0x20,0x20,0x20,0x45
00009c  6d626573          DCB      0x6d,0x62,0x65,0x73
0000a0  74204564          DCB      0x74,0x20,0x45,0x64
0000a4  754b6974          DCB      0x75,0x4b,0x69,0x74
0000a8  20536572          DCB      0x20,0x53,0x65,0x72
0000ac  69657320          DCB      0x69,0x65,0x73,0x20
0000b0  456d6265          DCB      0x45,0x6d,0x62,0x65
0000b4  64646564          DCB      0x64,0x64,0x65,0x64
0000b8  20546561          DCB      0x20,0x54,0x65,0x61
0000bc  6368696e          DCB      0x63,0x68,0x69,0x6e
0000c0  6720506c          DCB      0x67,0x20,0x50,0x6c
0000c4  6174666f          DCB      0x61,0x74,0x66,0x6f
0000c8  726d2020          DCB      0x72,0x6d,0x20,0x20
0000cc  20202020          DCB      0x20,0x20,0x20,0x20
0000d0  20202a2a          DCB      0x20,0x20,0x2a,0x2a
0000d4  0a000000          DCB      0x0a,0x00,0x00,0x00

⌨️ 快捷键说明

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