thanks for the response
so to conclude: if you want to turn an LED on (where the LED is grounded via the attached GPIO) you call the following:
gpio_configurePin(n/16, n%16, GPIO_OUTPUT_ENABLE, 0);
Where "n" is the number in "Pn" e.g. n=14 when P14?
I believe the following is correct:
// The following will drive P14 low, and if the LED is hooked up right, it will turn on
gpio_configurePin(14/16, 14%16, GPIO_OUTPUT_ENABLE, 0);
I believe that the /16 and Modulus operator are being used to map the Port and the physical pin.
P0 – P15 = PORT0
P16-P31 = PORT1
P32-P38 = PORT2