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);  
posted @ 2017-06-12 10:43  thomas_blog  阅读(105)  评论(0编辑  收藏  举报