This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem in GPIO configuration



hey all

I am new to Tm4c123 and I want to make GPIO of PORT A ...PA5 and PA6 as high...but I am facing problems in doing it...Here is my code....Kindly mark the issue....Thanks

int main(void)
{
ROM_FPUEnable();
ROM_FPULazyStackingEnable();
//SEt CLOCK TO 80MHZ
ROM_SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN |SYSCTL_XTAL_16MHZ|SYSCTL_SYSDIV_2_5);

 ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);

GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE,GPIO_PIN_5| GPIO_PIN_6);

 GPIOPinWrite(GPIO_PORTA_BASE,GPIO_PIN_5 | GPIO_PIN_6,0x60);

}