I am using the EK-TM4C1294XL board and am trying to toggle pins PL0-PL3 of GPIOL but have only been able to toggle PL0.
To configure the port I am using the following function calls:
MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOL);
MAP_GPIOPinTypeGPIOOutput(GPIO_PORTL_BASE, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 );
To write a 0 I use:
MAP_GPIOPinWrite(GPIO_PORTL_BASE, GPIO_PIN_0 , 0 );
To write a 1 I use:
MAP_GPIOPinWrite(GPIO_PORTL_BASE, GPIO_PIN_0 ,1 );
Is there a reason why none of the following statements would work?:
MAP_GPIOPinWrite(GPIO_PORTL_BASE, GPIO_PIN_1 ,1 );
MAP_GPIOPinWrite(GPIO_PORTL_BASE, GPIO_PIN_2 ,1 );
MAP_GPIOPinWrite(GPIO_PORTL_BASE, GPIO_PIN_3 ,1 );
Thanks for all your help.
Jorge