ARM9 引脚数据读取 ?不知道如何读取引脚的高低电平啊?我刚入门啊,求高手指点啊~~~比如说已经设置为输入了,现在要读这个引脚的高低电平状态如何读取?
s2440IOP->rGPGCON = (s2440IOP->rGPGCON &~(3 << 2)) | (0<< 2);// GPG1 == INPUT.
if(s2440IOP->rGPGDAT&&(0x1<<1) == 1){}else{}