Hi,
I am looking to understand the LAB1 example of driving basic led on the Launchpad.
The GPIO is configured as below:
GPIO_SetupPinOptions(34, GPIO_OUTPUT, GPIO_PUSHPULL);
GPIO_SetupPinMux(34, GPIO_MUX_CPU2, 0);
A for loop shown below toggles the gpio.
for(;;)
{
GPIO_WritePin(34, 0); // Turn on LD3
DELAY_US(1000 * 250);
GPIO_WritePin(34, 1); // Turn off LD3
DELAY_US(2000 * 250);
ToggleCount2++;
}
I have referenced the USER MANUAL and the datasheet to understand gpio settings in software.
How is the GPIO 34 configured as an active low pin ? Please let me know where to look for setting a gpio active high or low.
Kindly tell me the source for finding information regarding the gpio active high or active low configuration.
Thank you,