#define GPGCON *(unsigned int *)0x56000060
#define GPGDAT *(unsigned int *)0x56000064
void Main()
{
int i;
GPGCON = 0x50;
while(1){
GPGDAT |= 0x4;
for(i = 0; i < 3000000; i++)
;
GPGDAT &= ~(0x4);
GPGDAT |= 0x8;
for(i = 0; i < 3000000; i++)
;
GPGDAT &= ~(0x8);
}
}
#define GPGDAT *(unsigned int *)0x56000064
void Main()
{
int i;
GPGCON = 0x50;
while(1){
GPGDAT |= 0x4;
for(i = 0; i < 3000000; i++)
;
GPGDAT &= ~(0x4);
GPGDAT |= 0x8;
for(i = 0; i < 3000000; i++)
;
GPGDAT &= ~(0x8);
}
}
댓글