📄 win_debug.c
字号:
//-----------------------------------------------------------------------------
// This file is part of AP.FS
// AP.FS is a FAT32 file system face to the embedded system,It's target is to
// support the portable storage device such as SD Card,TF Card or USB Disc 's
// file system.
// please login www.another-prj.com to get more details.
// caiyuqing
// 2008-1-8
//-----------------------------------------------------------------------------
#include "target.h"
#include "../typedef.h"
void DBG_PRINT_BUF(BYTE *buf,UINT32 size,char *attr)
{
UINT32 i;
if(strcmp(attr,"%c")==0)
{
for(i = 0; i < size; i++)
{
printk("%c",buf[i]);
}
}
else
{
for(i = 0; i < size; i++)
{
if(i == 0)
printk("%04x: ",i/16);
if( (i % 16 == 0 ) && (i != 0) )
{
printk("\n%04x: ",i/16);
printk(attr,buf[i]);
}
else
{
printk(attr,buf[i]);
}
}
printk("\n");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -