Hello everybody, i´m trying to use the pind7 only as tx with the uart2, at this moment i've been unlocked this pin, but the UART2 dosen't work properlly and my program dosen't work when i uncomment the part after HERE'S THE PROBLEM, really i don´t know why, anybody have this problem too?
THIS IS THE PART OF THE UART CONFIGURATION FUNCTION
void
ConfigureUART(void)
{
//
// Enable the GPIO Peripheral used by the UART.
//
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
//
// Enable UART2
//
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART2);
//ROM_GPIOPinConfigure(GPIO_PD6_U2RX);
ROM_GPIOPinConfigure(GPIO_PD7_U2TX);
ROM_GPIOPinTypeUART(GPIO_PORTD_BASE, GPIO_PIN_7 );
// Unlock access to the commit register
HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = GPIO_LOCK_KEY;
//
// Set the commit register for PD7 to allow changing the function
//
HWREG(GPIO_PORTD_BASE + GPIO_O_CR) |= 0x80;
//
// Enable the alternate function for PD7 (U2TX)
//
HWREG(GPIO_PORTD_BASE + GPIO_O_AFSEL) |= 0x80;
HWREG(GPIO_PORTD_BASE + 0x52C) = 0x10000000;
//
// Turn on the digital enable for PD7
//
HWREG(GPIO_PORTD_BASE + GPIO_O_DEN) |= 0x80;
//
// Relock the commit register
//
HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = 0;
//
// Use the internal 16MHz oscillator as the UART clock source.
//
UARTClockSourceSet(UART2_BASE, UART_CLOCK_PIOSC);
//////////////// here is the problem ////////////////////////////////////////////
//
// Initialize the UART for console I/O.
//
//UARTStdioConfig(2, 115200, 16000000);
}