Hi, can you please provide some methods and commands for using the UART as GPIO as well in this board, in the CCS.
Thanks and Regards
Abhaya Raj Mishra
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.
Hi, can you please provide some methods and commands for using the UART as GPIO as well in this board, in the CCS.
Thanks and Regards
Abhaya Raj Mishra
Hi,
So, the pins are configured as UART function at the first place. Then you want to change the pin function to GPIO. Is that correct? It should be okay to call DL_GPIO_initDigitalOutput() to set the pins back to GPIO output function. And then you can call DL_GPIO_initPeripheralOutputFunction() and DL_GPIO_initPeripheralInputFunction to reconfigure the pins back to UART function. You might need to call the SYSCFG_DL_UART_0_init() when the pins configure back to UART function.
Best regards,
Cash Hao
Hi,
Yes your understanding of the question is right.
Ok I'll try your solution.
and can I use "DL_UART_enableTransmitPinManualControl();" this command as well for the same purpose?
Thank you
Abhaya Raj Mishra
Hi,
No. DL_UART_enableTransmitPinManualControl();" is not used for the GPIO configuration.
Best regards,
Cash Hao
You can refer to driver library API guide in the SDK installation path. Such as C:\ti\mspm0_sdk_1_20_00_05\docs\english\driverlib