Hi,
1.- Please check carefully the pin descriptions
P0_0 corresponds to GPIO0[0]
P0_1 -> GPIO0[1]
…
PA_1 -> GPIO4[8]
PA_2 -> GPIO4[9]
…
PB_6 -> GPIO5[26]
…
PF_2 -> GPIO7[17]
PF_11 -> GPIO7[25]


According with the user manual page 471, “Each GPIO port n (n = 0 to 7) has one direction register for configuring the port pins as inputs or outputs.”

2.- Please check the user manual pages 425-429, you will find information about how to select analog/digital functions.

In the following codes, it illustrate how to toggle the P2_10.
Chip_SCU_PinMuxSet(0x2, 10, (SCU_MODE_FUNC5)) // P2.10: GPIO0[14]
Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT,0, 14); //Set pin direction
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0, 14, false); // Output low
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0, 14, true); // Output high
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------