GPIOPinConfigure(GPIO_PA0_U0RX);
GPIOPinConfigure(GPIO_PA1_U0TX);
a dont know how to select the muxing functions in lm4f120h5qr. In my uart code i saw the error from this lines.help me to solve the bugs.....
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.
GPIOPinConfigure(GPIO_PA0_U0RX);
GPIOPinConfigure(GPIO_PA1_U0TX);
a dont know how to select the muxing functions in lm4f120h5qr. In my uart code i saw the error from this lines.help me to solve the bugs.....
There's more to it than that - that just configures the pin function, you still have to configure the pins for their alternate function:
GPIOPintTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
Not to mention setting your UART with UARTConfigSetExpClk and enabling the UART in general with UARTEnable.
Search the forums a bit and you'll find a ton of examples on bringing up a UART.