?? hal.c
字號(hào):
//===================================================================//
// Augest, 25, 2002 The Last Modified Date
// Modified by Dai LiZHou, HIT (dailizhou@0451.com)
//===================================================================//
#include "AvrUsb.H"
void outportb(unsigned int nPort, unsigned char nVal)
{
volatile unsigned char *exAddress;
exAddress =(volatile unsigned char *) nPort;
*exAddress = nVal;
}
unsigned char inportb(unsigned int nPort)
{
unsigned char nVal;
volatile unsigned char *exAddress;
exAddress =(volatile unsigned char *) nPort;
nVal = *exAddress;
return nVal;
}
void Delay(unsigned char nFactor)
{
unsigned char i,j;
for(j=0;j<4;j++)
for(i=0; i<nFactor; i++)
i=i;
}
void DelayMs(unsigned char nFactor)
{
unsigned char i,j;
for(j=0;j<4;j++)
for(i=0; i<nFactor; i++)
Delay(2);
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -