LPCOpen v3.01, a little question ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPCOpen v3.01, a little question ?

349 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by okwh on Thu Oct 01 22:26:12 MST 2015
In newest LPCOpen v3.01, for GPIO's setting,
Why some functions  have limit like : "port number (supports port 0 only)"  for setting  DIR,MASK, PIN, MPIN, SET, CLR, NOT   in gpio_5410x.h file  ?

supports port 0 only ?  then  how to do for port 1  ?


for example
/**
* @briefSet all GPIO raw pin states (regardless of masking)
* @parampGPIO: The base of GPIO peripheral on the chip
* @paramport: port Number (supports port 0 only) ????????????????????????????
* @paramvalue: Value to set all GPIO pin states (0..n) to
* @returnNothing
*/
__STATIC_INLINE void Chip_GPIO_SetPortValue(LPC_GPIO_T *pGPIO, uint8_t port, uint32_t value)
{
pGPIO->PIN[port] = value;
}


  Where are those ROM_xxx functions ??
标签 (1)
0 项奖励
回复
0 回复数