AnsweredAssumed Answered

GPIO Pin Interrupts on LPC4357 LPCOpen v2.xx

Question asked by lpcware Employee on Jun 15, 2016
Latest reply on Aug 7, 2016 by Kerry Zhou
Content originally posted in LPCWare by amorgan on Tue Oct 20 10:28:37 MST 2015
I have a question about the differences between chips and have not been able to find the answer. I am using a LPC4357 and am trying to understand how to use the GPIO Pin Interrupts.

In pinint_18xx_43xx.h there is a function:


Similar to gpio_18xx_43xx.c for:

void Chip_GPIO_Init(LPC_GPIO_T *pGPIO)

Are those functions supposed to be empty? We have an existing code base that was using LPCOpen drivers 1.x.x and we have upgraded to 2.x.x (which is not working). That is one reference point. Also I have a LPCXpresso 4337 and am referencing the pinint project, which works. In Board_Init of the 4337 example, calls:

/* Initializes GPIO */

but looking into that shows the above, where no action occurs within the function. I would like to avoid calling functions that are not needed for the sake of removing code smell.

Any help in understanding this, is appreciated.