void Delay(unsigned int Time)
{
while(Time --);
}
#if 0
int main()
{
*(unsigned int *)0x11000c40 = 0x10000000;
while(1)
{
*(unsigned int *)0x11000c44 = 0x00000080;
Delay(1000000);
*(unsigned int *)0x11000c44 = 0x00000000;
Delay(1000000);
}
return 0;
}
#endif
#if 0
#define GPX2CON (*(unsigned int *)0x11000c40)
#define GPX2DAT (*(unsigned int *)0x11000c44)
int main()
{
GPX2CON = 0x10000000;
while(1)
{
GPX2DAT = 0x00000080;
Delay(1000000);
GPX2DAT = 0x00000000;
Delay(1000000);
}
return 0;
}
#endif
#if 0
typedef struct
{
unsigned int CON;
unsigned int DAT;
unsigned int PUD;
unsigned int DRV;
}gpx2;
#define GPX2 (*(gpx2 *)0x11000c40)
int main()
{
GPX2.CON = 0x10000000;
while(1)
{
GPX2.DAT = 0x00000080;
Delay(1000000);
GPX2.DAT = 0x00000000;
Delay(1000000);
}
return 0;
}
#endif
#include "exynos_4412.h"
int main()
{
GPX2.CON = GPX2.CON & (~(0xF << 28)) | (0x1 << 28);
GPX1.CON = GPX1.CON & (~0xF) | (0x1);
GPF3.CON = GPF3.CON & (~(0xF << 16)) | (0x1 << 16);
GPF3.CON = GPF3.CON & (~(0xF << 20)) | (0x1 << 20);
while(1)
{
GPX2.DAT = GPX2.DAT | (1 << 7);
Delay(100000);
GPX2.DAT = GPX2.DAT & (~(1 << 7));
Delay(100000);
GPX1.DAT = GPX1.DAT | 1;
Delay(100000);
GPX1.DAT = GPX1.DAT & (~1);
Delay(100000);
GPF3.DAT = GPF3.DAT | (1 << 4);
Delay(100000);
GPF3.DAT = GPF3.DAT & (~(1 << 4));
Delay(100000);
GPF3.DAT = GPF3.DAT | (1 << 5);
Delay(100000);
GPF3.DAT = GPF3.DAT & (~(1 << 5));
Delay(100000);
}
return 0;
}