- I'm writing code using MCUXpresso IDE for a LPC1788 -
Has anybody used LPCOpen's Chip_GPIO_Init() function before? I started looking at the documentation at  and followed the links to the input parameter to that function  and . So the definition of the structure given in the documentation  includes the data fields:
However when I define the structure in C code "LPC_GPIO_T gpio;" and type "gpio." the IDE's autocompletion gives me the options:
There is a discrepancy between the documentation for LPCOpen and the IDE's interpretation, and I wonder which is correct. The documentation isn't clear on the function Chip_GPIO_Init() and what should be passed in. It appears to be a structure but perhaps I just call it with the address 0x20098000 which appears to be the base address of GPIO registers in the LPC1788, as in "Chip_GPIO_Init((LPC_GPIO_T *)0x20098000);"
Can anybody confirm the correct calling convention and if there's better documentation out there somewhere please let me know.