We are trying to read/write some GPIO lines on TIVA C series TM4C129X based custom board. But gpio line is not getting written.
The below code fragment is used to write to the GPIO line (gpio port B, line 6):
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
GPIOPinConfigure(GPIO_PB2_T5CCP0);
GPIOPinTypePWM(GPIO_PORTB_BASE, GPIO_PIN_2);
GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE, 2);
GPIOPinWrite(GPIO_PORTB_BASE, 2, 0x1);
Checked with the oscilloscoe, and the gpio line is still shown as low.
Can anyone provide some pointer to the example code for toggling any gpio line in TI RTOS on TIVA C series ?