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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
579 Views
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".

Labels (1)
Tags (2)
0 Kudos
1 Solution
473 Views
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

View solution in original post

0 Kudos
2 Replies
474 Views
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 Kudos
473 Views
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 Kudos