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

📄 debug.cod

📁 Ep93XX TionProV2 BSP
💻 COD
📖 第 1 页 / 共 3 页
字号:
  00080	808c0010	 DCD         0x808c0010
  00084	808c000c	 DCD         0x808c000c
  00088		 |$M38496|

			 ENDP  ; |UART1_Start|


  00000			 AREA	 |.text| { |UART2_Start| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$UART2_Start|, PDATA, SELECTION=5, ASSOC=|.text| { |UART2_Start| } ; comdat associative
|$T38506| DCD	|$L38505|
	DCD	0x40001e01
; Function compile flags: /Ods

  00000			 AREA	 |.text| { |UART2_Start| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |UART2_Start| PROC

; 236  : {

  00000		 |$L38505|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M38503|

; 237  :     UART2_Stop();

  00004	eb000000	 bl          UART2_Stop

; 238  : 
; 239  :     //
; 240  :     // Set up default baudrate
; 241  :     //
; 242  :    *UART2_LCR_M = 0 ;                

  00008	e59f2064	 ldr         r2, [pc, #0x64]
  0000c	e3a03000	 mov         r3, #0
  00010	e5823000	 str         r3, [r2]

; 243  :    *UART2_LCR_L = UART_DIVISOR(DEBUG_UART_SPEED); 

  00014	e59f2054	 ldr         r2, [pc, #0x54]
  00018	e3a0300b	 mov         r3, #0xB
  0001c	e5823000	 str         r3, [r2]

; 244  : 
; 245  :     //
; 246  :     // Setup mode 8 bits, no parity, 1 stop bit, fifo enabled.
; 247  :     //
; 248  :     *UART2_LCR_H = LCR_H_DATABITS_8 | LCR_H_FIFO_ENABLE;

  00020	e59f2044	 ldr         r2, [pc, #0x44]
  00024	e3a03070	 mov         r3, #0x70
  00028	e5823000	 str         r3, [r2]

; 249  : 
; 250  :     
; 251  :     // Clear old status.
; 252  :     *UART2_SR  = 0;                           

  0002c	e59f2034	 ldr         r2, [pc, #0x34]
  00030	e3a03000	 mov         r3, #0
  00034	e5823000	 str         r3, [r2]

; 253  :     // *UART2_MCR  = MCR_RTS | MCR_DTR;
; 254  :     *UART2_IIR = 0;

  00038	e59f2024	 ldr         r2, [pc, #0x24]
  0003c	e3a03000	 mov         r3, #0
  00040	e5823000	 str         r3, [r2]

; 255  : 
; 256  :     //
; 257  :     // enable this uart
; 258  :     //
; 259  :     *UART2_CR |= CR_UARTE;                      

  00044	e59f3014	 ldr         r3, [pc, #0x14]
  00048	e5933000	 ldr         r3, [r3]
  0004c	e3832001	 orr         r2, r3, #1
  00050	e59f3008	 ldr         r3, [pc, #8]
  00054	e5832000	 str         r2, [r3]

; 260  : 
; 261  :     return;
; 262  : }//end uart1_start

  00058	e49de004	 ldr         lr, [sp], #4
  0005c	e12fff1e	 bx          lr
  00060		 |$L38508|
  00060	808d0014	 DCD         0x808d0014
  00064	808d001c	 DCD         0x808d001c
  00068	808d0004	 DCD         0x808d0004
  0006c	808d0008	 DCD         0x808d0008
  00070	808d0010	 DCD         0x808d0010
  00074	808d000c	 DCD         0x808d000c
  00078		 |$M38504|

			 ENDP  ; |UART2_Start|

	EXPORT	|UART3_Start|
	EXPORT	|UART3_Stop|

  00000			 AREA	 |.text| { |UART3_Start| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$UART3_Start|, PDATA, SELECTION=5, ASSOC=|.text| { |UART3_Start| } ; comdat associative
|$T38514| DCD	|$L38513|
	DCD	0x40001c01
; Function compile flags: /Ods

  00000			 AREA	 |.text| { |UART3_Start| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |UART3_Start| PROC

; 271  : {

  00000		 |$L38513|
  00000	e52de004	 str         lr, [sp, #-4]!
  00004		 |$M38511|

; 272  :     //
; 273  :     // Uart3 stop.
; 274  :     //
; 275  :     UART3_Stop();

  00004	eb000000	 bl          UART3_Stop

; 276  : 
; 277  :     //
; 278  :     // Program uart divisor.
; 279  :     //
; 280  :     *UART3_LCR_L = UART_DIVISOR(DEBUG_UART_SPEED); 

  00008	e59f205c	 ldr         r2, [pc, #0x5C]
  0000c	e3a0300b	 mov         r3, #0xB
  00010	e5823000	 str         r3, [r2]

; 281  :     *UART3_LCR_M = 0 ;                

  00014	e59f204c	 ldr         r2, [pc, #0x4C]
  00018	e3a03000	 mov         r3, #0
  0001c	e5823000	 str         r3, [r2]

; 282  : 
; 283  :     //
; 284  :     // setup mode 8 data bits, 1 stop bit, no parity.
; 285  :     //
; 286  :     *UART3_LCR_H = LCR_H_DATABITS_8 ;   

  00020	e59f203c	 ldr         r2, [pc, #0x3C]
  00024	e3a03060	 mov         r3, #0x60
  00028	e5823000	 str         r3, [r2]

; 287  : 
; 288  :     //
; 289  :     // Clear old status.
; 290  :     //
; 291  :     *UART3_SR  = 0;                           

  0002c	e59f202c	 ldr         r2, [pc, #0x2C]
  00030	e3a03000	 mov         r3, #0
  00034	e5823000	 str         r3, [r2]

; 292  : 
; 293  :     //
; 294  :     //clr intrpts
; 295  :     //
; 296  :     *UART3_IIR = 0;

  00038	e59f201c	 ldr         r2, [pc, #0x1C]
  0003c	e3a03000	 mov         r3, #0
  00040	e5823000	 str         r3, [r2]

; 297  : 
; 298  :     //
; 299  :     // enable this uart
; 300  :     //
; 301  :     *UART3_CR = CR_UARTE;                      

  00044	e59f200c	 ldr         r2, [pc, #0xC]
  00048	e3a03001	 mov         r3, #1
  0004c	e5823000	 str         r3, [r2]

; 302  : 
; 303  :     return;
; 304  : 
; 305  : }//end uart3_start

  00050	e49de004	 ldr         lr, [sp], #4
  00054	e12fff1e	 bx          lr
  00058		 |$L38516|
  00058	808e0014	 DCD         0x808e0014
  0005c	808e001c	 DCD         0x808e001c
  00060	808e0004	 DCD         0x808e0004
  00064	808e0008	 DCD         0x808e0008
  00068	808e000c	 DCD         0x808e000c
  0006c	808e0010	 DCD         0x808e0010
  00070		 |$M38512|

			 ENDP  ; |UART3_Start|


  00000			 AREA	 |.text| { |UART1_Stop| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$UART1_Stop|, PDATA, SELECTION=5, ASSOC=|.text| { |UART1_Stop| } ; comdat associative
|$T38522| DCD	|$L38521|
	DCD	0x40001500
; Function compile flags: /Ods

  00000			 AREA	 |.text| { |UART1_Stop| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |UART1_Stop| PROC

; 313  : {

  00000		 |$L38521|
  00000		 |$M38519|

; 314  : 
; 315  :     //
; 316  :     // Disable this uart
; 317  :     //
; 318  :     *UART1_CR    = 0;   

  00000	e59f2048	 ldr         r2, [pc, #0x48]
  00004	e3a03000	 mov         r3, #0
  00008	e5823000	 str         r3, [r2]

; 319  : 
; 320  :     *UART1_LCR_H = 0;

  0000c	e59f2038	 ldr         r2, [pc, #0x38]
  00010	e3a03000	 mov         r3, #0
  00014	e5823000	 str         r3, [r2]

; 321  :     *UART1_LCR_M = 0;

  00018	e59f2028	 ldr         r2, [pc, #0x28]
  0001c	e3a03000	 mov         r3, #0
  00020	e5823000	 str         r3, [r2]

; 322  :     *UART1_LCR_L = 0;

  00024	e59f2018	 ldr         r2, [pc, #0x18]
  00028	e3a03000	 mov         r3, #0
  0002c	e5823000	 str         r3, [r2]

; 323  : 
; 324  :     //
; 325  :     // Clear status bits.
; 326  :     //
; 327  :     *UART1_SR = 0;        

  00030	e59f2008	 ldr         r2, [pc, #8]
  00034	e3a03000	 mov         r3, #0
  00038	e5823000	 str         r3, [r2]

; 328  :     return;
; 329  : }

  0003c	e12fff1e	 bx          lr
  00040		 |$L38524|
  00040	808c0004	 DCD         0x808c0004
  00044	808c0010	 DCD         0x808c0010
  00048	808c000c	 DCD         0x808c000c
  0004c	808c0008	 DCD         0x808c0008
  00050	808c0014	 DCD         0x808c0014
  00054		 |$M38520|

			 ENDP  ; |UART1_Stop|


  00000			 AREA	 |.text| { |UART2_Stop| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$UART2_Stop|, PDATA, SELECTION=5, ASSOC=|.text| { |UART2_Stop| } ; comdat associative
|$T38530| DCD	|$L38529|
	DCD	0x40001500
; Function compile flags: /Ods

  00000			 AREA	 |.text| { |UART2_Stop| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |UART2_Stop| PROC

; 337  : {

  00000		 |$L38529|
  00000		 |$M38527|

; 338  : 
; 339  :     //
; 340  :     // Disable this uart
; 341  :     //
; 342  :     *UART2_CR    = 0;   

  00000	e59f2048	 ldr         r2, [pc, #0x48]
  00004	e3a03000	 mov         r3, #0
  00008	e5823000	 str         r3, [r2]

; 343  : 
; 344  :     *UART2_LCR_H = 0;

  0000c	e59f2038	 ldr         r2, [pc, #0x38]
  00010	e3a03000	 mov         r3, #0
  00014	e5823000	 str         r3, [r2]

; 345  :     *UART2_LCR_M = 0;

  00018	e59f2028	 ldr         r2, [pc, #0x28]
  0001c	e3a03000	 mov         r3, #0
  00020	e5823000	 str         r3, [r2]

; 346  :     *UART2_LCR_L = 0;

  00024	e59f2018	 ldr         r2, [pc, #0x18]
  00028	e3a03000	 mov         r3, #0
  0002c	e5823000	 str         r3, [r2]

; 347  : 
; 348  :     //
; 349  :     // Clear status bits.
; 350  :     //
; 351  :     *UART2_SR = 0;        

  00030	e59f2008	 ldr         r2, [pc, #8]
  00034	e3a03000	 mov         r3, #0
  00038	e5823000	 str         r3, [r2]

; 352  :     return;
; 353  : }

  0003c	e12fff1e	 bx          lr
  00040		 |$L38532|
  00040	808d0004	 DCD         0x808d0004
  00044	808d0010	 DCD         0x808d0010
  00048	808d000c	 DCD         0x808d000c
  0004c	808d0008	 DCD         0x808d0008
  00050	808d0014	 DCD         0x808d0014
  00054		 |$M38528|

			 ENDP  ; |UART2_Stop|


  00000			 AREA	 |.text| { |UART3_Stop| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$UART3_Stop|, PDATA, SELECTION=5, ASSOC=|.text| { |UART3_Stop| } ; comdat associative
|$T38538| DCD	|$L38537|
	DCD	0x40001500
; Function compile flags: /Ods

  00000			 AREA	 |.text| { |UART3_Stop| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |UART3_Stop| PROC

; 362  : {

  00000		 |$L38537|
  00000		 |$M38535|

; 363  :     //
; 364  :     // disable this uart
; 365  :     //
; 366  :     *UART3_CR    = 0;   

  00000	e59f2048	 ldr         r2, [pc, #0x48]
  00004	e3a03000	 mov         r3, #0
  00008	e5823000	 str         r3, [r2]

; 367  : 
; 368  :     *UART3_LCR_H = 0;

  0000c	e59f2038	 ldr         r2, [pc, #0x38]
  00010	e3a03000	 mov         r3, #0
  00014	e5823000	 str         r3, [r2]

; 369  :     *UART3_LCR_M = 0;

  00018	e59f2028	 ldr         r2, [pc, #0x28]
  0001c	e3a03000	 mov         r3, #0
  00020	e5823000	 str         r3, [r2]

; 370  :     *UART3_LCR_L = 0;

  00024	e59f2018	 ldr         r2, [pc, #0x18]
  00028	e3a03000	 mov         r3, #0
  0002c	e5823000	 str         r3, [r2]

; 371  : 
; 372  : 
; 373  :     // Clear status bits.
; 374  :     *UART3_SR = 0;        

  00030	e59f2008	 ldr         r2, [pc, #8]
  00034	e3a03000	 mov         r3, #0
  00038	e5823000	 str         r3, [r2]

; 375  : 
; 376  :     return;
; 377  : }

  0003c	e12fff1e	 bx          lr
  00040		 |$L38540|
  00040	808e0004	 DCD         0x808e0004
  00044	808e0010	 DCD         0x808e0010
  00048	808e000c	 DCD         0x808e000c
  0004c	808e0008	 DCD         0x808e0008
  00050	808e0014	 DCD         0x808e0014
  00054		 |$M38536|

			 ENDP  ; |UART3_Stop|

	EXPORT	|UART1_Write|

  00000			 AREA	 |.text| { |UART1_Write| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$UART1_Write|, PDATA, SELECTION=5, ASSOC=|.text| { |UART1_Write| } ; comdat associative
|$T38546| DCD	|$L38545|
	DCD	0x40001003
; Function compile flags: /Ods

  00000			 AREA	 |.text| { |UART1_Write| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |UART1_Write| PROC

; 386  : {

  00000		 |$L38545|
  00000	e1a0c00d	 mov         r12, sp
  00004	e92d0001	 stmdb       sp!, {r0}
  00008	e92d5000	 stmdb       sp!, {r12, lr}
  0000c		 |$M38543|
  0000c		 |$L38297|

; 387  :     //
; 388  :     // txfe  see if the tx fifo is empty
; 389  :     //
; 390  :     while ((*UART1_FR & FR_TXFE) != FR_TXFE)         

  0000c	e59f3028	 ldr         r3, [pc, #0x28]
  00010	e5933000	 ldr         r3, [r3]
  00014	e2033080	 and         r3, r3, #0x80
  00018	e3530080	 cmp         r3, #0x80
  0001c	0a000000	 beq         |$L38298|

; 391  :         /* - do nothing until fifo is empty; ie character is gone */
; 392  :         ;

  00020	eafffff9	 b           |$L38297|
  00024		 |$L38298|

; 393  : 
; 394  :     *UART1_DR = (int)ch;

  00024	e5dd2008	 ldrb        r2, [sp, #8]
  00028	e3a03102	 mov         r3, #2, 2
  0002c	e3833723	 orr         r3, r3, #0x23, 14
  00030	e5832000	 str         r2, [r3]

; 395  : }

  00034	e89d6000	 ldmia       sp, {sp, lr}
  00038	e12fff1e	 bx          lr
  0003c		 |$L38548|
  0003c	808c0018	 DCD         0x808c0018
  00040		 |$M38544|

			 ENDP  ; |UART1_Write|


  00000			 AREA	 |.text| { |UART2_Write| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$UART2_Write|, PDATA, SELECTION=5, ASSOC=|.text| { |UART2_Write| } ; comdat associative
|$T38554| DCD	|$L38553|
	DCD	0x40001003
; Function compile flags: /Ods

  00000			 AREA	 |.text| { |UART2_Write| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |UART2_Write| PROC

; 402  : {

  00000		 |$L38553|
  00000	e1a0c00d	 mov         r12, sp
  00004	e92d0001	 stmdb       sp!, {r0}
  00008	e92d5000	 stmdb       sp!, {r12, lr}
  0000c		 |$M38551|
  0000c		 |$L38306|

; 403  :     //
; 404  :     // txfe  see if the tx fifo is empty
; 405  :     //
; 406  :     while ((*UART2_FR & FR_TXFE) != FR_TXFE)         

  0000c	e59f3028	 ldr         r3, [pc, #0x28]
  00010	e5933000	 ldr         r3, [r3]
  00014	e2033080	 and         r3, r3, #0x80
  00018	e3530080	 cmp         r3, #0x80
  0001c	0a000000	 beq         |$L38307|

; 407  :         /* - do nothing until fifo is empty; ie character is gone */
; 408  :         ;

  00020	eafffff9	 b           |$L38306|
  00024		 |$L38307|

; 409  : 
; 410  :     *UART2_DR = (int)ch;

  00024	e5dd2008	 ldrb        r2, [sp, #8]
  00028	e3a03102	 mov         r3, #2, 2
  0002c	e383388d	 orr         r3, r3, #0x8D, 16
  00030	e5832000	 str         r2, [r3]

; 411  : }

  00034	e89d6000	 ldmia       sp, {sp, lr}
  00038	e12fff1e	 bx          lr
  0003c		 |$L38556|
  0003c	808d0018	 DCD         0x808d0018
  00040		 |$M38552|

			 ENDP  ; |UART2_Write|

	EXPORT	|UART3_Write|

  00000			 AREA	 |.text| { |UART3_Write| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$UART3_Write|, PDATA, SELECTION=5, ASSOC=|.text| { |UART3_Write| } ; comdat associative
|$T38562| DCD	|$L38561|
	DCD	0x40001003
; Function compile flags: /Ods

  00000			 AREA	 |.text| { |UART3_Write| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |UART3_Write| PROC

; 419  : {

  00000		 |$L38561|
  00000	e1a0c00d	 mov         r12, sp
  00004	e92d0001	 stmdb       sp!, {r0}
  00008	e92d5000	 stmdb       sp!, {r12, lr}

⌨️ 快捷键说明

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