common.c

来自「厂家提供的OSD芯片T108的驱动程序,驱动模拟屏」· C语言 代码 · 共 46 行

C
46
字号
#include "common.h"

unsigned char   idata m_cBuff[5];
unsigned short  idata m_wBuff[3];

void DelayT(unsigned int wLoops)
{
	unsigned int wTemp;
								   
    while (wLoops--) {
	    wTemp = 1000/6;	// one loop below takes about 11 us
        while (wTemp--);
    }
}


/*
void COM_OUT_STRING(unsigned char *puts)
{
	for(;*puts!=0;puts++)
	putByte(*puts);
	putString("\r\n");
}

void COM_OUT_VALUE(unsigned char *sStr, unsigned char cByte, bit CLF)
{
	for(;*sStr != 0;sStr++)
		putByte(*sStr);
	putByte(n2c((cByte>>4) & 0x0F));
	putByte(n2c(cByte & 0x0F));
	if(CLF)
		putString("\r\n");
}

void COM_PAUSE(void)
{
	unsigned char tmp;
	putString("Press any key to continue ...");
	tmp = getByte();
	putString("\r\n");
}
*/



⌨️ 快捷键说明

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