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

📄 dbgu.lst

📁 ARM7X256的网络ARP和ICMP的简单软件协议版(备注是IAR开发环境下)
💻 LST
📖 第 1 页 / 共 2 页
字号:
##############################################################################
#                                                                            #
# IAR ARM ANSI C/C++ Compiler V4.41A/W32 EVALUATION    29/Apr/2007  11:07:45 #
# Copyright 1999-2005 IAR Systems. All rights reserved.                      #
#                                                                            #
#    Cpu mode        =  interwork                                            #
#    Endian          =  little                                               #
#    Stack alignment =  4                                                    #
#    Source file     =  E:\arm\at91sam7x\software\at91sam7x256_iar\AT91_SAM7 #
#                       X256-IAR\AT91SAM7X256-BasicEMAC_IAR4_30-1_2\AT91SAM7 #
#                       X256-BasicEmac\src\dbgu.c                            #
#    Command line    =  E:\arm\at91sam7x\software\at91sam7x256_iar\AT91_SAM7 #
#                       X256-IAR\AT91SAM7X256-BasicEMAC_IAR4_30-1_2\AT91SAM7 #
#                       X256-BasicEmac\src\dbgu.c -D ESS -lC                 #
#                       E:\arm\at91sam7x\software\at91sam7x256_iar\AT91_SAM7 #
#                       X256-IAR\AT91SAM7X256-BasicEMAC_IAR4_30-1_2\AT91SAM7 #
#                       X256-BasicEmac\compil\RAM_Debug\List\ -o             #
#                       E:\arm\at91sam7x\software\at91sam7x256_iar\AT91_SAM7 #
#                       X256-IAR\AT91SAM7X256-BasicEMAC_IAR4_30-1_2\AT91SAM7 #
#                       X256-BasicEmac\compil\RAM_Debug\Obj\ -z2 --no_cse    #
#                       --no_unroll --no_inline --no_code_motion --no_tbaa   #
#                       --no_clustering --no_scheduling --debug --cpu_mode   #
#                       thumb --endian little --cpu ARM7TDMI --stack_align   #
#                       4 --interwork -e --fpu None --dlib_config            #
#                       "D:\Program Files\IAR Systems\Embedded Workbench     #
#                       4.0 Evaluation\ARM\LIB\dl4tptinl8n.h" -I             #
#                       E:\arm\at91sam7x\software\at91sam7x256_iar\AT91_SAM7 #
#                       X256-IAR\AT91SAM7X256-BasicEMAC_IAR4_30-1_2\AT91SAM7 #
#                       X256-BasicEmac\compil\srciar\ -I                     #
#                       E:\arm\at91sam7x\software\at91sam7x256_iar\AT91_SAM7 #
#                       X256-IAR\AT91SAM7X256-BasicEMAC_IAR4_30-1_2\AT91SAM7 #
#                       X256-BasicEmac\compil\..\..\ -I "D:\Program          #
#                       Files\IAR Systems\Embedded Workbench 4.0             #
#                       Evaluation\ARM\INC\"                                 #
#    List file       =  E:\arm\at91sam7x\software\at91sam7x256_iar\AT91_SAM7 #
#                       X256-IAR\AT91SAM7X256-BasicEMAC_IAR4_30-1_2\AT91SAM7 #
#                       X256-BasicEmac\compil\RAM_Debug\List\dbgu.lst        #
#    Object file     =  E:\arm\at91sam7x\software\at91sam7x256_iar\AT91_SAM7 #
#                       X256-IAR\AT91SAM7X256-BasicEMAC_IAR4_30-1_2\AT91SAM7 #
#                       X256-BasicEmac\compil\RAM_Debug\Obj\dbgu.r79         #
#                                                                            #
#                                                                            #
##############################################################################

E:\arm\at91sam7x\software\at91sam7x256_iar\AT91_SAM7X256-IAR\AT91SAM7X256-BasicEMAC_IAR4_30-1_2\AT91SAM7X256-BasicEmac\src\dbgu.c
      1          //*----------------------------------------------------------------------------
      2          //*         ATMEL Microcontroller Software Support  -  ROUSSET  -
      3          //*----------------------------------------------------------------------------
      4          //* The software is delivered "AS IS" without warranty or condition of any
      5          //* kind, either express, implied or statutory. This includes without
      6          //* limitation any warranty or condition with respect to merchantability or
      7          //* fitness for any particular purpose, or against the infringements of
      8          //* intellectual property rights of others.
      9          //*----------------------------------------------------------------------------
     10          //* File Name           : dbgu.c
     11          //* Object              : DBGU routines written in C
     12          //* Creation            : JG   16/Aug/2004
     13          //*----------------------------------------------------------------------------
     14          
     15          // Include Standard files
     16          #include "Board.h"

   \                                 In segment CODE, align 4, keep-with-next
   \   __??Code16?? __code __interwork __atpcs void AT91F_PIO_CfgPeriph(AT91PS_PIO, unsigned int, unsigned int)
   \                     AT91F_PIO_CfgPeriph:
   \   00000000   0167               STR      R1,[R0, #+112]
   \   00000002   4267               STR      R2,[R0, #+116]
   \   00000004   1300               MOVS     R3,R2
   \   00000006   0B43               ORRS     R3,R3,R1
   \   00000008   4360               STR      R3,[R0, #+4]
   \   0000000A   7047               BX       LR               ;; return

   \                                 In segment CODE, align 4, keep-with-next
   \   __??Code16?? __code __interwork __atpcs void AT91F_PMC_EnablePeriphClock(AT91PS_PMC, unsigned int)
   \                     AT91F_PMC_EnablePeriphClock:
   \   00000000   0161               STR      R1,[R0, #+16]
   \   00000002   7047               BX       LR               ;; return

   \                                 In segment CODE, align 4, keep-with-next
   \   __??Code16?? __code __interwork __atpcs void AT91F_DBGU_CfgPIO(void)
   \                     AT91F_DBGU_CfgPIO:
   \   00000000   00B5               PUSH     {LR}
   \   00000002   0022               MOVS     R2,#+0
   \   00000004   C021               MOVS     R1,#+192
   \   00000006   4905               LSLS     R1,R1,#+21       ;; #+402653184
   \   00000008   0248               LDR      R0,??AT91F_DBGU_CfgPIO_0  ;; 0xfffffffffffff400
   \   0000000A   ........           _BLF     AT91F_PIO_CfgPeriph,??AT91F_PIO_CfgPeriph??rT
   \   0000000E   01BC               POP      {R0}
   \   00000010   0047               BX       R0               ;; return
   \   00000012   C046               Nop      
   \                     ??AT91F_DBGU_CfgPIO_0:
   \   00000014   00F4FFFF           DC32     0xfffffffffffff400
     17          
     18          //*--------------------------1--------------------------------------------------
     19          //* \fn    AT91F_DBGU_Printk
     20          //* \brief This function is used to send a string through the DBGU channel (Very low level debugging)
     21          //*----------------------------------------------------------------------------

   \                                 In segment CODE, align 4, keep-with-next
     22          void AT91F_DBGU_Printk(	char *buffer)
     23          {
   \                     AT91F_DBGU_Printk:
   \   00000000   00B5               PUSH     {LR}
     24              AT91PS_DBGU pDbgu = AT91C_BASE_DBGU ; 
   \   00000002   ....               LDR      R3,??DataTable5  ;; 0xfffffffffffff200
   \   00000004   1900               MOVS     R1,R3
     25              unsigned int temp;
     26              
     27              while(*buffer != '\0') 
   \                     ??AT91F_DBGU_Printk_0:
   \   00000006   0378               LDRB     R3,[R0, #+0]
   \   00000008   002B               CMP      R3,#+0
   \   0000000A   10D0               BEQ      ??AT91F_DBGU_Printk_1
     28              {
     29                  temp=0;
   \   0000000C   0023               MOVS     R3,#+0
   \   0000000E   1A00               MOVS     R2,R3
     30                  
     31          	while (temp==0)
   \                     ??AT91F_DBGU_Printk_2:
   \   00000010   002A               CMP      R2,#+0
   \   00000012   08D1               BNE      ??AT91F_DBGU_Printk_3
     32          	{
     33          	  if ( (pDbgu->DBGU_CSR & 0x0200) == 0)
   \   00000014   4B69               LDR      R3,[R1, #+20]
   \   00000016   9B05               LSLS     R3,R3,#+22
   \   00000018   02D4               BMI      ??AT91F_DBGU_Printk_4
     34          	    temp=0;
   \   0000001A   0023               MOVS     R3,#+0
   \   0000001C   1A00               MOVS     R2,R3
   \   0000001E   F7E7               B        ??AT91F_DBGU_Printk_2
     35          	  else
     36          	    temp=1;
   \                     ??AT91F_DBGU_Printk_4:
   \   00000020   0123               MOVS     R3,#+1
   \   00000022   1A00               MOVS     R2,R3
   \   00000024   F4E7               B        ??AT91F_DBGU_Printk_2
     37          	}
     38          
     39                  pDbgu->DBGU_THR = *buffer;
   \                     ??AT91F_DBGU_Printk_3:
   \   00000026   0378               LDRB     R3,[R0, #+0]
   \   00000028   CB61               STR      R3,[R1, #+28]
     40                  buffer++;
   \   0000002A   401C               ADDS     R0,R0,#+1
   \   0000002C   EBE7               B        ??AT91F_DBGU_Printk_0
     41              }
     42          }
   \                     ??AT91F_DBGU_Printk_1:
   \   0000002E   01BC               POP      {R0}
   \   00000030   0047               BX       R0               ;; return
     43          
     44          

   \                                 In segment CODE, align 4, keep-with-next
     45          void Init_DBGU_CLK(void)
     46          {
   \                     Init_DBGU_CLK:
   \   00000000   00B5               PUSH     {LR}
     47            AT91F_PMC_EnablePeriphClock(AT91C_BASE_PMC, ((unsigned int) 1 << AT91C_ID_SYS));

⌨️ 快捷键说明

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