I'm using the Enet_s2e application. I need to toggle PC5.
I have the following code at the end of the pinout.c routine to enable the pin:
ROM_GPIOPinTypeGPIOOutput(GPIO_PORTC_BASE, GPIO_PIN_5);
MAP_GPIOPadConfigSet(GPIO_PORTC_BASE, GPIO_PIN_5, GPIO_STRENGTH_12MA, GPIO_PIN_TYPE_STD);
ROM_GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_5, 0);
I want to toggle the pin PC5 in SerialSend() each time the telnet receives a character and sends it to the UART for transmission.
GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_5, 1); // U9 TX_EN
UARTCharPut(g_ui32UARTBase[ui32Port], ui8Char);
GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_5, 0); // U9 RX_EN
I can't get activity on the pin PC5 when I monitor it with the scope???
From the TM4C1294XL Data sheet Section 10 p.743, the default state after a PUC is GPIO Input.
I have not configurged GPIOAFSEL for the pin but I'm not certain that the TI supplied SW has not done so somewhere????