Other Parts Discussed in Thread: MAX232
Hi guys,
Good day!!
I am trying to send data from Stellaris LM4F232 device to a PC(hyperterminal - RS232) via UART1 and I found some example codes shown below. but these are for UART0. Can anyone show me the documentation regarding the functions used in the code below? I can't seem to find it in the package from Stellaris EKL-LM4F232 Evaluation Board.
//
// Set the clocking to run directly from the crystal.
//
ROM_SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ |
SYSCTL_OSC_MAIN);
//
// Initialize the UART.
//
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
ROM_GPIOPinConfigure(GPIO_PA0_U0RX);
ROM_GPIOPinConfigure(GPIO_PA1_U0TX);
ROM_GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
UARTStdioInit(0);
UARTprintf("Hello, world!\n");
Thanks,
Sherwin
