KSDK1.2: Where is g_portBaseAddr(portNumber) defined?

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

KSDK1.2: Where is g_portBaseAddr(portNumber) defined?

跳至解决方案
1,231 次查看
sinterklaas
Contributor I

I'm upgrading a project from KSDK1.1 to 1.2 and I get error "g_portBaseAddr' was not declared in this scope". Since some variables are renamed in this new 1.2 library, I think the g_portBaseAddr is renamed as well.

 

Does anyone know in which header file the g_portBaseAddr(portNumber) is defined in KSDK1.2? It should return "PORT_Type * base".

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,125 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Sint erklaas:

That is defined as g_portBase[PORT_INSTANCE_COUNT] in the file fsl_gpio_common.c and declared as "extern" in the file fsl_gpio_driver.h.

Regards!

Jorge Gonzalez

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,126 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Sint erklaas:

That is defined as g_portBase[PORT_INSTANCE_COUNT] in the file fsl_gpio_common.c and declared as "extern" in the file fsl_gpio_driver.h.

Regards!

Jorge Gonzalez

0 项奖励
回复
1,125 次查看
sinterklaas
Contributor I

Thank you! The namechange explains why notepad++ couldn't find it anywhere. Now I can continue again :smileyhappy:.

Upgrading takes more time than I expected. I wish there would be a list of all changes from 1.1 to 1.2, although other posts in this forum tell me there aint one.

0 项奖励
回复