点亮Led灯

GPC1_3

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

//配置管脚为输出功能
GPC1CON &= ~(0x0f << 12);

//禁止内部上下拉
GPC1PUD &= ~(0x03 << 6);
GPC1PUD &= ~(0x03 << 8);

//点亮 
GPC1DAT |= (1 << 3);  

你可能感兴趣的:(led,点亮Led灯)