S5PV210 点亮Led

1

GPC1CON, R/W, Address = 0xE020_0080
1

GPC1DAT, R/W, Address = 0xE020_0084
2

举例

#define GPC1CON *((volatile unsigned int*)0xE0200080)  
#define GPC1DAT *((volatile unsigned int*)0xE0200084)  

*(unsigned int*)GPC1CON &= ~(0xf << 12);
*(unsigned int*)GPC1CON |= (0x1 << 12);

*(unsigned int*)GPC1DAT &= ~(0x1 << 3);
*(unsigned int*)GPC1DAT |= (0x1 << 3);  
原文地址:https://www.cnblogs.com/zhangxuechao/p/11709656.html