求助
谁帮我看看下面这个程序为什么就是编译不过
#inclede<stdio.h>
#include"M051.h"
#include"Driver\DrvGPIO.h"
void delay()
{
unsigned int i,j;
for(i=1000;i>0;i--)
for(j=1000;j>0;j--);
}
int main(void)
{
DrvGPIO_Open (E_PORT2, E_PIN0, E_IO_OUTPUT);
DrvGPIO_Open (E_PORT2, E_PIN1, E_IO_OUTPUT);
DrvGPIO_Open (E_PORT2, E_PIN2, E_IO_OUTPUT);
DrvGPIO_Open (E_PORT2, E_PIN3, E_IO_OUTPUT);
DrvGPIO_Open (E_PORT2, E_PIN4, E_IO_OUTPUT);
while(1)
{
_PORT_DOUT (2, 0) = 1;
_PORT_DOUT (2, 1) = 1;
_PORT_DOUT (2, 2) = 1;
_PORT_DOUT (2, 3) = 1;
_PORT_DOUT (2, 4) = 1;
delay();
_PORT_DOUT (2, 0) = 0;
_PORT_DOUT (2, 1) = 0;
_PORT_DOUT (2, 2) = 0;
_PORT_DOUT (2, 3) = 0;
_PORT_DOUT (2, 4) = 0;
}
}
谢谢! |