link.c

来自「Embest S3CEB2410驱动例程源代码。」· C语言 代码 · 共 46 行

C
46
字号
#include "..\common\2410lib.h"
void Embest(void);
void _Link(void);

/////////////////////////////////////////////////////////////////////////

extern char Image_RO_Limit[];
extern char Image_RO_Base[];
extern char Image_RW_Limit[];
extern char Image_RW_Base[];
extern char Image_ZI_Limit[];
extern char Image_ZI_Base[];

void _Link(void)
{
    Uart_Printf("\n Miscellaneous settings of the Linker Script file(*.ld):\n");
    Uart_Printf(" Image_RO_Base  = 0x%x\n",Image_RO_Base);
    Uart_Printf(" Image_RO_Limit = 0x%x\n",Image_RO_Limit);
    Uart_Printf("       ROM code Total is used: %dK Bytes\n",\
               (Image_RO_Limit-Image_RO_Base)/1024);
    Uart_Printf(" Image_RW_Base  = 0x%x\n",Image_RW_Base);
    Uart_Printf(" Image_RW_Limit = 0x%x\n",Image_RW_Limit);
    Uart_Printf(" Image_ZI_Base  = 0x%x\n",Image_ZI_Base);
    Uart_Printf(" Image_ZI_Limit = 0x%x\n",Image_ZI_Limit);
    Uart_Printf("       RAM Total is used: %dK Bytes\n",\
               (Image_RW_Limit-Image_RW_Base)/1024+(Image_ZI_Limit-Image_ZI_Base)/1024);
}

//// Delete before sale... start

void Embest(void)
{
		    Uart_Printf("\n\r   Embest 2410 Evaluation Board(S3C2410)\n");
			Uart_Printf("    *==================================*\n"); 
       		Uart_Printf("    *=  深圳市英蓓特信息技术有限公司  =*\n"); 
       		Uart_Printf("    *==================================*\n"); 
       		Uart_Printf("    *========== 产品研发中心 ==========*\n"); 
 			Uart_Printf("    *=======  86-755-25631365  ========*\n"); 
       		Uart_Printf("    *===== support@embedinfo.com ======*\n"); 
      		Uart_Printf("    *===                            ===*\n"); 
            /*Uart_Printf("        %4x,%2x,%2x,%s,%2x:%2x:%2x\r",\
                           year,month,day,date[weekday],hour,min,sec);*/
}

//// Delete before sale... end

⌨️ 快捷键说明

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