return TRUE;
}
这是周立功的GPIO驱动里面的一个函数
我看数据手册中各个寄存器的地址相隔0x00000004的,
I/O PORT CONTROL REGISTER
PORT A CONTROL REGISTERS (GPACON/GPADAT)
Register Address R/W Description Reset Value
GPACON 0x56000000 R/W Configure the pins of port A 0x7FFFFF
GPADAT 0x56000004 R/W The data register for port A Undefined
Reserved 0x56000008 – Reserved Undefined
Reserved 0x5600000C – Reserved Undefined
/////////////////////////////////////////////////////
PORT B CONTROL REGISTERS (GPBCON, GPBDAT, and GPBUP)
Register Address R/W Description Reset Value
GPBCON 0x56000010 R/W Configure the pins of port B 0x0
GPBDAT 0x56000014 R/W The data register for port B Undefined
GPBUP 0x56000018 R/W Pull-up disable register for port B 0x0
Reserved 0x5600001C – Reserved Undefined
///////////////////////////////////////////////////////